Aggregates & associations

Sean Kelly sean at f4.ca
Tue Dec 18 16:54:11 PST 2007


A long time ago Walter mentioned that the "scope" attribute may be 
extended to indicate aggregation:

     class Foo
     {
         Bar valA;
         scope Baz val2;
     }

With the above, the size of Foo would be expanded to contain an instance 
of Baz and val2 would be initialized to reference this memory, very much 
like "scope" works in functions now.  But I didn't see any mention of 
this in the D 2.0 writeup so the idea may have been either discarded or 
forgotten.


Sean



More information about the Digitalmars-d mailing list