struct in class access
js.mdnq
js_adddot+mdng at gmail.com
Sun Dec 9 01:33:30 PST 2012
On Sunday, 9 December 2012 at 09:06:28 UTC, Maxim Fomin wrote:
> 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
Nope, sorry, as I said, I do not want to keep 4 to 8 bytes FOR NO
REASON! It doesn't have to be done that way and it is not a work
around. It is simply a waste of space.
More information about the Digitalmars-d-learn
mailing list