C++ to D: mutable

Kagamin spam at here.lot
Thu Mar 24 07:06:01 PDT 2011


Caligo Wrote:

> Greetings,
> 
> I have a C++ class that I would like to rewrite it in D.  The class
> has members that are declared as 'mutable'.  How do I achieve the same
> effect in D? if not, what is recommended?

const int a=0;
*cast(int*)&a=1;


More information about the Digitalmars-d-learn mailing list