Effect of declaring a class immutable ?

chmike via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu May 26 07:12:23 PDT 2016


I couldn't find any information about this on the dlang web site.

What is the effect adding the immutable attribute to a class like 
this

immutable class MyClass { ... }

The compiler doesn't complain.
Will it add the immutable attribute to all members ?









More information about the Digitalmars-d-learn mailing list