[nem-en] Const vs. Static non-mutable
NoiseEHC
NoiseEHC at freemail.hu
Tue Feb 20 16:43:41 CET 2007
What if we specify that all fields which are initialized in the (static)
constructor, are removed
from the ncc rule and simply become readonly (static) fields, and all
the inline initialized ones
remain automagically const-ized if possible?
vc wrote:
>> I think this is about class fields, which, as people noted, have
>> different versioning behavior depending on whether they are const or
>> readonly.
>>
>
> Yes, this can make a problem. Then we need add readonly modifier which
> prevent variable from constant folding.
>
>
> _______________________________________________
> https://nemerle.org/mailman/listinfo/devel-en
>
>
>
More information about the devel-en
mailing list