DIP60: @nogc attribute

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Thu Apr 24 12:17:14 PDT 2014


On 4/24/2014 11:49 AM, bearophile wrote:
> Walter Bright:
>> "Can't" is a bit strong of a word. Needing a workaround that is perhaps a bit
>> ugly is more accurate. For your example,
>>
>>     enum int x = 3;
>>
>> will solve the issue.
>
> In most cases that "x" is a run-time value, as in my example.

You can make it a static and it'll work. Ugly, but it'll work.



More information about the Digitalmars-d mailing list