Shallow constness?

Maxime Chevalier-Boisvert maximechevalierb at gmail.com
Tue Jul 23 11:01:55 PDT 2013


Is there an attribute that can make member variables of a class 
read-only without having to declare them as const or immutable 
(const all the way down)? I saw that one can define a getter 
function without a setter to achieve this behavior, but that 
seems like a little bit of a hack.


More information about the Digitalmars-d mailing list