Mutable reference to const objects

Yuxuan Shui via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jul 1 01:30:22 PDT 2015


How do I express a mutable reference to a const object in D?

What I want to do is to define a variable, which refers a 
constant object, but I can change which constant object it is 
referring. Is this possible?


More information about the Digitalmars-d-learn mailing list