Const/Shared/Immutable anomalies in D that should be fixed

Mehrdad wfunction at hotmail.com
Wed May 2 23:19:40 PDT 2012


> Marking a struct's definition as const or immutable just makes all of its 
> members const or immutable.
> The type itself can't be const or immutable.

What sense does it make to have a struct whose members are all const, and 
which is not automatically const by itself? 



More information about the Digitalmars-d mailing list