Unable to test for function name

Janice Caron caron800 at googlemail.com
Fri Nov 30 07:03:34 PST 2007


This no longer works in D2.008.

    struct A
    {
        void f() {}

        static assert(is(f));
    }

    void main()
    {
        A a;
    }

Under D2.007, the static assert would pass, because f exists. In
D2.008, the static assert fails. Why?

More importantly, how do I test that a function exists in D2.008?



More information about the Digitalmars-d mailing list