how to manage the list of immutable objects

aki via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jul 14 04:12:48 PDT 2015


On Tuesday, 14 July 2015 at 10:46:42 UTC, Andrea Fontana wrote:
> Trying on http://dpaste.dzfl.pl/ I don't see that error.
> Maybe you mean "const" and not "immutable" ?
>
> Andrea

I used:
DMD32 D Compiler v2.067.1 on Windows8
I believe there are no typo because it is copy-pasted.
I noticed I can use cast.
cast()(map[name]) = cast()this;
Are there any better solution?

Aki.



More information about the Digitalmars-d-learn mailing list