struct in class access

Maxim Fomin maxim at maxim-fomin.ru
Sun Dec 9 01:06:27 PST 2012


On Sunday, 9 December 2012 at 06:54:33 UTC, js.mdnq wrote:
> Why can't a struct inside a class access the members of that 
> class without a this pointer? It would seem natural to me that 
> a nested struct should probably be special in that it is really 
> just a special container to reduce clutter in the class.

Your problem have obvious and simple workaround 
http://dpaste.dzfl.pl/701affe8


More information about the Digitalmars-d-learn mailing list