[Issue 2274] all static if typeof seriously wrong

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Aug 8 21:39:13 PDT 2008


http://d.puremagic.com/issues/show_bug.cgi?id=2274





------- Comment #9 from someanon at yahoo.com  2008-08-08 23:39 -------
(In reply to comment #8)
> Yes, it inherits it from Object.
> 

/dmd/src/phobos/object.d 

class Object
{
    void print();
    string toString();        // you mean this one?
    hash_t toHash();
    int opCmp(Object o);
    bool opEquals(Object o);

    final void notifyRegister(void delegate(Object) dg);
    final void notifyUnRegister(void delegate(Object) dg);

    static Object factory(string classname);
}

How it pass the static test in my original code?

Shall we reopen the bug? ;-)


-- 



More information about the Digitalmars-d-bugs mailing list