2 problems I can't get my head around

Walter Bright newshound2 at digitalmars.com
Wed Nov 28 18:10:10 PST 2012


On 11/29/2012 1:47 AM, jerro wrote:
> It would work if some new way to force something to be evaluated at
> compile time would be added, like this:
>
> alias Y = i; // symbol alias
> alias Z = compiletime(i); // literal constant

or:

    enum Z = i;  // evaluated at compile time

<g>



More information about the Digitalmars-d mailing list