[Issue 9065] Please consider adding these std.traits

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Nov 27 06:45:08 PST 2012


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



--- Comment #34 from Manu <turkeyman at gmail.com> 2012-11-27 06:45:04 PST ---
@Kenji:

I'm getting an error when using your new isFunction, here's the case:

struct S
{
    static string func(alias Class)()
    {
        foreach(m; __traits(allMembers, Class))
        {
            pragma(msg, m);
            static if( isFunction!( mixin( m ) ) )
                bool b = true;
        }
    }

    enum nothing = func!(typeof(this))();
    mixin(nothing);
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list