bug in tupleof ?

Guillaume Chereau charlie137 at gmail.com
Wed Mar 7 21:51:05 PST 2007


Is that normal that this very simple code :

import std.stdio;

class Test {int i;};

int main()
{
    auto t = new Test();
    t.i = 10;

    writefln(t.tupleof);
    auto f = t.tupleof;
    writefln(f);

    return 0;
}

returns :
10
0

Is it a bug in the compiler, or I am missing something about properties ?



More information about the Digitalmars-d-learn mailing list