tail const ?

sclytrack via Digitalmars-d digitalmars-d at puremagic.com
Wed Oct 29 12:07:09 PDT 2014


As Stewart Gordon mentioned before (2012)

What about adding tailConst to the D programming language?


tailConst MyStruct a;

All fields of the MyStruct would be tailConst and ...



tailConst MyClass b;

would make the the pointer mutable but all the fields of b const.



...tailImmutable, ...


More information about the Digitalmars-d mailing list