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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jul 5 07:52:10 PDT 2010


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


Simen Kjaeraas <simen.kjaras at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |simen.kjaras at gmail.com


--- Comment #1 from Simen Kjaeraas <simen.kjaras at gmail.com> 2010-07-05 07:52:08 PDT ---
> isArray

std.traits has isArray

> isClass

This is easily done with is( T == class ).

> isFunction

This is easily done with is( T == function ).

> isStruct

This is easily done with is( T == struct ).

> isType

is( T )?

> isVariable

(!is( T ) && is( typeof( T )))?

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