Re: struct in class access

2012-12-09 Thread js.mdnq
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 tha

Re: struct in class access

2012-12-09 Thread js.mdnq
On Sunday, 9 December 2012 at 08:56:00 UTC, Maxim Fomin wrote: On Sunday, 9 December 2012 at 07:39:29 UTC, js.mdnq wrote: On Sunday, 9 December 2012 at 07:24:57 UTC, Jonathan M Davis wrote: On Sunday, December 09, 2012 07:54:25 js.mdnq wrote: Why can't a struct inside a class access the member

Re: struct in class access

2012-12-09 Thread Maxim Fomin
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 th

Re: struct in class access

2012-12-09 Thread Maxim Fomin
On Sunday, 9 December 2012 at 07:39:29 UTC, js.mdnq wrote: On Sunday, 9 December 2012 at 07:24:57 UTC, Jonathan M Davis wrote: On Sunday, December 09, 2012 07:54:25 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

Re: struct in class access

2012-12-08 Thread js.mdnq
... A a; What is the address of A? What is the address of x inside A? (i.e., the struct inside A?) I of course, mean a, which is why it's nice to have the ability to make an edit so I don't have to waste a post and/or someone else bloat the thread with "A is a class, not an object, go lea

Re: struct in class access

2012-12-08 Thread js.mdnq
On Sunday, 9 December 2012 at 07:24:57 UTC, Jonathan M Davis wrote: On Sunday, December 09, 2012 07:54:25 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 tha

Re: struct in class access

2012-12-08 Thread Jonathan M Davis
On Sunday, December 09, 2012 07:54:25 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