Nested Structs
bearophile
bearophileHUGS at lycos.com
Mon Dec 27 09:50:47 PST 2010
Steven Schveighoffer:
> A struct nested in a class does not have a hidden "outer" pointer as a
> nested class does.
But I think this will eventually change, once this part is implemented:
http://www.digitalmars.com/d/2.0/struct.html
>Nested Structs: A nested struct is a struct that is declared inside the scope of a function or a templated struct that has aliases to local functions as a template argument. Nested structs have member functions. It has access to the context of its enclosing scope (via an added hidden field).<
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list