[Issue 4427] __traits should have isFunction, isVariable, etc

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jul 5 18:12:18 PDT 2010


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



--- Comment #2 from Jonathan M Davis <jmdavisProg at gmail.com> 2010-07-05 18:12:14 PDT ---
Good points, though would == function check when it was a function pointer
rather than a function? In either case, I think that you should be able to
check these in a consistent manner, which you can't do right now. With things
spread out between built-in constructs, __traits, and std.traits, it can be a
bit of a mess to figure out how to do something with compile-time reflection.
Even if something like isType were simply translated to is(T), I think that
having it would still be quite valuable since it would make the various
compile-time reflection facilities more consistent and uniform.

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