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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jul 6 10:06:02 PDT 2010


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



--- Comment #4 from Jonathan M Davis <jmdavisProg at gmail.com> 2010-07-06 10:05:58 PDT ---
I would expect that immutable and const variables would still be variables,
just not mutable ones. If you wanted to know whether they were const or
immutable, you could do a separate test for that on top of checking whether
something was a variable, just like you'd do if you wanted to know whether it
were static.

Personally, I've been trying to figure out how to get the list of non-static
member variables out of a class at compile-time, and it's been a bit of a pain.
And for what I'm doing with them, I wouldn't care whether they were immutable
or const.

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