C# readonly equivalent ?

1 view
Skip to first unread message

emp...@gmail.com

unread,
Nov 11, 2008, 2:54:55 PM11/11/08
to Nemerle Forum
as you know C# has a readonly keyword which is a bit different than
immutable. It allows consturtor to modify the field. Is there an
equiavalent of this in nemerle ?

Andrew Davey

unread,
Nov 11, 2008, 4:59:55 PM11/11/08
to Nemerle Forum
In Nemerle, immutable fields *can* be set in the constructor.

VladD2

unread,
Nov 12, 2008, 7:40:11 AM11/12/08
to nemer...@googlegroups.com
2008/11/12 Andrew Davey <a.j....@gmail.com>:

>
> In Nemerle, immutable fields *can* be set in the constructor.

Yes, and the compiler generate same (as in C#) IL.

Reply all
Reply to author
Forward
0 new messages