proposition classname.this
Jarrett Billingsley
jarrett.billingsley at gmail.com
Thu Nov 27 10:11:45 PST 2008
On Thu, Nov 27, 2008 at 12:39 PM, Zarathustra
<adam.chrapkowski at gmail.com> wrote:
> 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; }
> }
> }
>
You can already access that through this.outer.
More information about the Digitalmars-d
mailing list