Nested Structs (Solution)
Rob T
rob at ucora.com
Sat Dec 15 17:04:43 PST 2012
There's an interesting discussion going on that may be related to
this subject.
http://forum.dlang.org/thread/mailman.2705.1355596709.5162.digitalmars-d@puremagic.com
Note the definition with the "hidden reference frame" baggage,
and to get rid of the extra baggage use "static struct".
The reference frame mentioned however is not for a parent class
or struct, but maybe its similar enough that nested structs could
possibly be extended with a hidden reference to the parent class
or struct.
It all seems debatable though with various levels of
complications associated with implementing a nest struct.
--rt
More information about the Digitalmars-d
mailing list