[Issue 9065] Please consider adding these std.traits

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Nov 24 11:51:45 PST 2012


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



--- Comment #5 from David Nadlinger <code at klickverbot.at> 2012-11-24 11:51:44 PST ---
(In reply to comment #4)
> Does that not test if T is some sort of function pointer?
> 
> ...actually, that's some sort of special case overloaded meaning of the
> function keyword in conjunction with 'is' isn't it? I think I remember running
> into that like, a year ago. I recall being very confused at the time.
> Will that only pass in function definitions? Will exclude function pointers?

Yes, this is one of the ugliest parts of the is() syntax. You are probably
right, the fact alone that "function" has a different meaning here than in the
rest of the language probably warrants inclusion of an isFunction() trait…

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