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

Reply via email to