[Issue 9065] Please consider adding these std.traits

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Nov 27 07:59:21 PST 2012


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



--- Comment #40 from Manu <turkeyman at gmail.com> 2012-11-27 07:59:18 PST ---
(In reply to comment #38)
> That won't work for methods, but that might not be the use case.

Yeah, if it were in std.traits, I would expect it to work on methods too.


(In reply to comment #37)
> (In reply to comment #31)
> > I am seeing a few error cases:
> > 
> > enum j { k = 10 }
> > 
> > pragma(msg, isFunction!(j.k));
> > pragma(msg, isManifestConstant!(j.k));
> > pragma(msg, isPropertyFunction!(j.k));
> > pragma(msg, isVariable!(j.k));
> > 
> > These all throw errors.
> 
> Fixed.

Huzzah!

> This is a compiler bug, not an issue of isFunction template.
> I filed new bug 9083.

Amazing!
You sir are awesome! :)

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