On 12/31/10, Simen kjaeraas <[email protected]> wrote:
>

This will give you both:

class A
{
    void bar(this T) ( )
    {
        writeln(typeid(T));
        writeln(typeid(this));
    }
}

class B : A
{
}

void main( )
{
    A a = new B;
    a.bar();
}

Reply via email to