mutable reference to const object

Benjamin Thaut code at benjamin-thaut.de
Tue Oct 12 02:07:59 PDT 2010


I want to have a mutable reference to a const object. So that I can 
reasign the reference but can not modifiy the object. Is this possible 
in D 2.0? I found tailconst in the const FAQ but as it is not 
implemented in D 2.0 I'm clueless how to realize this.

-- 
Kind Regards
Benjamin Thaut


More information about the Digitalmars-d-learn mailing list