Compile time function execution...
Walter Bright
newshound at digitalmars.com
Thu Feb 15 13:57:47 PST 2007
Michiel wrote:
> Very good point. This could be solved by using some sort of conditional
> compilation construct on the bits you want to happen at runtime.
It's the other way around. Functions are always executed at runtime,
unless they are in a context where a compile-time constant is
*required*, such as for global variable initialization or template value
arguments.
More information about the Digitalmars-d
mailing list