[nem-en] Const vs. Static non-mutable

Kamil Skalski kamil.skalski at gmail.com
Tue Feb 20 16:22:25 CET 2007


I would prefer just to control this by "mutable".  Or maybe allow
specifying "volatile" to prevent literalizing the field?

2007/2/20, Michal Moskal <michal.moskal at gmail.com>:
> On 2/20/07, vc <vc at rsdn.ru> wrote:
> > > I think the same difference like between const and static readonly in C#.
> >
> > -1
> >
> > It depend from initializer.
> > def x = 1;          // => const
> > def x = SomeCall(); // => readonly
>
> I think this is about class fields, which, as people noted, have
> different versioning behavior depending on whether they are const or
> readonly.
>
>
> --
>    Michał
>
> _______________________________________________
> https://nemerle.org/mailman/listinfo/devel-en
>
>


-- 
Kamil Skalski
http://nazgul.omega.pl


More information about the devel-en mailing list