DIP60: @nogc attribute
bearophile via Digitalmars-d
digitalmars-d at puremagic.com
Thu Apr 24 11:49:07 PDT 2014
Walter Bright:
> Pointing out these issues is exactly what @nogc is designed to
> do.
Right.
> "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.
Bye,
bearophile
More information about the Digitalmars-d
mailing list