[Issue 9065] Please consider adding these std.traits

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Nov 24 20:35:30 PST 2012


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



--- Comment #9 from Jonathan M Davis <jmdavisProg at gmx.com> 2012-11-24 20:35:26 PST ---
> Looking at that link, what's with all the typeof(bar) stuff? Do those
> tempaltes not work by alias? Surely I should be able to say
> isSomeFunction!bar, not requiring isSomeFunction!(typeof(bar)) ?

std.traits operates on types, so I would not expect isSomeFunction!bar to ever
work. You need to pass it a type. That's how everything in that module works.

-- 
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