Can someone explain why i can change this immutable variable please?

Dicebot public at dicebot.lv
Wed Oct 9 08:58:25 PDT 2013


D does stripping of qualifiers from top level when creating a 
copy which allows to pass immutable stuff as mutable parameter by 
value. Adding any single level of immutable indirection will make 
this impossible and result in compile-time error.


More information about the Digitalmars-d-learn mailing list