[Issue 9065] Please consider adding these std.traits

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Nov 27 04:06:03 PST 2012


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



--- Comment #25 from Manu <turkeyman at gmail.com> 2012-11-27 04:06:02 PST ---
(In reply to comment #24)
> This highlights another conflict in terminology, currently a property is NOT
> recognised as a function (at least in my crappy tests). I really think
> isFunction!someProperty should be true. It's a function, exactly like any
> other, I can take pointers/delegates of it, it just has a particular usage
> semantic. Effectively a subset, not a different concept.
> 
> So I suggest isFunction! should give true for a property function definition.

Sorry! I just saw your unit test asserts isFunction! is true for property
functions. I didn't see that behaviour with is(X==function) in my tests.

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