Non compile time evaluation for initializers

Max Samukha samukha at voliacable.com.removethis
Fri Oct 26 06:16:52 PDT 2007


On Fri, 26 Oct 2007 22:47:02 +1000, Reiner Pope <some at address.com>
wrote:

>There are plenty of other ways to force compile-time evaluation. I use
>
>const int x = ctfeFunction();
>
>much more than
>
>// global namespace
>int x = ctfeFunction();
>
>
>I wouldn't have any objection to keeping const meaning ctfe-evaluated, 
>but global non-consts may be postponed till runtime.
>
>
>   -- Reiner

Agree



More information about the Digitalmars-d mailing list