Re: can't initialize .outer in inner class

2015-05-06 Thread Kenji Hara via Digitalmars-d
2015/05/06 19:35 "Timon Gehr via Digitalmars-d" : > > Probably nested types should invoke nested template instantiation, as the context pointer is runtime data. Then add a way to access the context pointer associated with some symbol (e.g. __traits). Related: https://issues.dlang.org/show_bug.cgi?

Re: can't initialize .outer in inner class

2015-05-06 Thread Andrei Alexandrescu via Digitalmars-d
On 5/6/15 3:31 AM, Timon Gehr wrote: On 05/06/2015 10:01 AM, Andrei Alexandrescu wrote: Consider: void fun() { int x; class C { ... } } Objects of type C have access to x because they have an .outer pseudo-member. Problem is, emplace() and any other in-situ initia

Re: can't initialize .outer in inner class

2015-05-06 Thread Timon Gehr via Digitalmars-d
On 05/06/2015 10:01 AM, Andrei Alexandrescu wrote: Consider: void fun() { int x; class C { ... } } Objects of type C have access to x because they have an .outer pseudo-member. Problem is, emplace() and any other in-situ initialization techniques fail (e.g. emplace