CTFE vs. traditional metaprogramming

Michel Fortin michel.fortin at michelf.com
Sat Oct 10 15:58:39 PDT 2009


On 2009-10-10 16:56:33 -0400, language_fan <foo at bar.com.invalid> said:

>> 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.

What I was getting at is that given good enough runtime reflection, 
templates could depend on runtime parameters, and those templates could 
be instanciated at runtime.


-- 
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/




More information about the Digitalmars-d mailing list