Immutable

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jun 23 07:33:15 PDT 2017


On Friday, 23 June 2017 at 14:29:41 UTC, harakim wrote:
> heh. I've been working on this for an hour or so. Right after I 
> posted, I tried casting it, which worked. Thank you for your 
> time.

cast works, but `new immutable` with a pure ctor should work 
better. (casts are easy to get wrong so best to avoid them if 
there's another way)


More information about the Digitalmars-d-learn mailing list