Passing reference data to class and incapsulation

bearophile via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Nov 28 00:31:24 PST 2014


Uranuz:

> Same situation happens when I assign reference data to 
> properties.

Someone has suggested to solve this problem with an attribute, 
like "owned", that forbids to return mutable reference data owned 
by a class/struct instance.

Bye,
bearophuile


More information about the Digitalmars-d-learn mailing list