Summary: __traits should have isFunction, isVariable, etc
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD

--- Comment #0 from Jonathan M Davis <> 2010-07-04 
18:59:56 PDT ---
At present, __traits has some nice stuff that will let you check things like
whether a function is abstract, or whether something is of an integral type. It
will even let you get all of the member functions and variables of a class.
However, there is no way at present (as far as I can tell) to determine whether
something is a function or a variable. There isn't a way to determine if
something is a type either, let alone whether it's a class, struct, array, or
scalar type. Most of what's there seems to be to ask about the attributes of a
particular expression, variable, or type rather than telling you what it _is_.
In particular, I think that we need these __traits:


Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to