3 ms·
Are there any common languages that allow you to do compile time metaprogramming in the language itself? I'm not sure what you mean by 'in the language itself'
by O____________O 12y ago
Are there any common languages that allow you to do compile time metaprogramming in the language itself?
I'm not sure what you mean by 'in the language itself', since isn't all compile-time metaprogramming in the language itself? But this question has an example of computing Fibonacci sequences in C++ templates:
http://stackoverflow.com/questions/908256/getting-template-metaprogramming-compile-time-constants-at-runtime http://stackoverflow.com/questions/908256/getting-template-m...
The second part of the question is about how to turn that into a table which can be referenced at runtime, which would seem to be the same as your question.