A purity change

bearophile bearophileHUGS at lycos.com
Thu Jul 11 11:03:12 PDT 2013


Maxim Fomin:

> My guess is that before 2.063 immutable int y was implicitly 
> static,

Yet, in the code I used to initialize y in the normal constructor 
of Foo. If now I tag y as static, that's not possible any more 
(Error: can only initialize static const member scale inside 
static constructor), so I don't understand again.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list