Clay language

Andrej Mitrovic andrej.mitrovich at gmail.com
Thu Dec 30 17:58:01 PST 2010


On 12/31/10, Simen kjaeraas <simen.kjaras at gmail.com> 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();
}


More information about the Digitalmars-d mailing list