Why D doesn't have an equivalent to C#'s readonly?

anonymous via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jun 29 15:22:44 PDT 2015


On Monday, 29 June 2015 at 22:11:16 UTC, sigod wrote:
> `new immutable(MyClass)()` is invalid code.

It's perfectly fine, actually.



More information about the Digitalmars-d-learn mailing list