CTFE vs. traditional metaprogramming
language_fan
foo at bar.com.invalid
Sat Oct 10 13:56:33 PDT 2009
Fri, 09 Oct 2009 20:20:02 -0400, Michel Fortin thusly wrote:
> But an interesting thing I realized in the last few months is this: all
> you can do with a template you can also do at runtime provided
> sufficient runtime reflection capabilities. Even creating types!
This is a well known fact..
> And from that point of view, you can see templates as an compiled,
> optimized version of runtime reflection and type creation capabilities.
Runtime reflection can be really expensive computationally, but it
becomes useful when you need mobile code.
More information about the Digitalmars-d
mailing list