Feature Request: Expose the context pointer of nested classes, please

Pragma ericanderton at yahoo.removeme.com
Fri Sep 29 12:13:49 PDT 2006


Tom S wrote:
> Ivan Senji wrote:
>> icee wrote:
>>> Keyword for direct access of the outer from the inner of nested 
>>> classes, the "context pointer".
>>
>> I agree 100% on this. This is really missing. There is a workaround 
>> but it is IMO stupid to have to add a member to outer class that a 
>> inner class can access something it already contains (hidden).
> 
> I second that. Frank Benoit has proposed the keyword 'outer' before and 
> I'm surprised the idea hasn't been adapted yet.

Heh. Proves what /I/ know.  I thought we *already* had it (I must be 
thinking in Java).

It really should be in the language.

-- 
- EricAnderton at yahoo



More information about the Digitalmars-d mailing list