const=readonly invariant=const

Sascha Katzner sorry.no at spam.invalid
Fri Jan 4 11:13:48 PST 2008


Daniel919 wrote:
> But then it would be easier if we change:
> const to readonly
> invariant to const

I like this idea to exchange the meaning of const and invariant *VERY* 
much. Personally I prefer "invariant" to "readonly", but this is negligible.

The very nice side effect of this change would be, that we could kick 
the recent enum changes (which practically nobody likes *eg*), in favor 
to the much more intuitive and backward compatible "const PI = 3.14" 
form for manifest constants.

LLAP,
Sascha Katzner



More information about the Digitalmars-d mailing list