[Issue 9065] Please consider adding these std.traits

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Nov 24 11:48:54 PST 2012


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



--- Comment #4 from Manu <turkeyman at gmail.com> 2012-11-24 11:48:53 PST ---
(In reply to comment #3)
> For the second point, what about is(T == function)? The is() syntax is not very
> popular (rightfully so), but I am not sure if we have a decision to replicate
> even its most basic use cases in std.traits yet.

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?

The first point is by far the most important, it's the one I really have no
idea how to do properly myself. I have templates that kinda work, but seem to
break in some cases, and I use it constantly.

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