Re: Need help with accessing outer object

2016-08-29 Thread Cherry via Digitalmars-d
How about having traits like hasOuter and getOuter (analogous to hasMember and getMember)? I can give it a shot to add these traits to D compiler. But would such a pull request be accepted? I mean of course the code in the pull-request has to meet review expectations, but would such a PR be

Need help with accessing outer object

2016-08-29 Thread Cherry via Digitalmars-d
Greetings All Can you help me with this code? I could not find any traits or other way to get me outer object of a given inner object. As for the context, I am fiddling with D trying to write a (domain specific) generic baseclass library. InnerBase is part of the library I write and the end