[Issue 9065] Please consider adding these std.traits
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Nov 27 07:16:42 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9065
Dmitry Olshansky <dmitry.olsh at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dmitry.olsh at gmail.com
--- Comment #36 from Dmitry Olshansky <dmitry.olsh at gmail.com> 2012-11-27 07:16:39 PST ---
(In reply to comment #35)
> I've just this afternoon encountered another one that I can't work out a nice
> way to discover:
>
> struct S
> {
> static int x;
> }
>
> bool b = isStatic!(S.x); // <- I can't think of a nice clean way to prove this
> other than trying to assign to it, which is horrible.
Trying to take the address should do the trick.
is(typeof(&S.x)) that is.
--
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