2 problems I can't get my head around

jerro a at a.com
Wed Nov 28 19:12:44 PST 2012


On Thursday, 29 November 2012 at 02:10:11 UTC, Walter Bright 
wrote:
> 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>

Yeah, I know this does the job. I wasn't seriously proposing that 
we get rid of this usage of enum and define a new construct.


More information about the Digitalmars-d mailing list