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

sigod via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jun 29 15:29:38 PDT 2015


On Monday, 29 June 2015 at 22:22:46 UTC, anonymous wrote:
> On Monday, 29 June 2015 at 22:11:16 UTC, sigod wrote:
>> `new immutable(MyClass)()` is invalid code.
>
> It's perfectly fine, actually.

Yes, you're right. It seems I've mistyped `immutable` when was 
checking it with compiler.


More information about the Digitalmars-d-learn mailing list