Constant relationships between non-constant objects

Daniel Murphy via Digitalmars-d digitalmars-d at puremagic.com
Tue Jun 17 23:35:50 PDT 2014


"Sebastian Unger"  wrote in message 
news:ebzakjopnllweizsikai at forum.dlang.org...

> I have two classes A and B. Each object of class A is associated
> with a particular object of class B. This association is not
> supposed to change throughout the lifetime of the object of A.

I think D used to have this in the form of the 'final' storage class for 
variables.  I'm not sure why we got rid of it. 



More information about the Digitalmars-d mailing list