proposition classname.this

BCS ao at pathlink.com
Thu Nov 27 09:57:40 PST 2008


Reply to Zarathustra,

> Proposition: className.this for nested classes
> 
> for ex:
> class Foo{
> void fnc1(){}
> class Bar{
> void fnc1
> void fnc2(){ Foo.this.fnc1; }
> }
> }
> instead of:
> class Foo{
> Foo Foo_this(){ return this; }
> void fnc1(){}
> class Bar{
> void fnc1
> void fnc2(){ Foo_this.fnc1; }
> }
> }

I think that "outer" has been proposed for that as well.





More information about the Digitalmars-d mailing list