[Issue 9065] Please consider adding these std.traits

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Nov 27 07:52:22 PST 2012


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



--- Comment #39 from Manu <turkeyman at gmail.com> 2012-11-27 07:52:20 PST ---
(In reply to comment #36)
> Trying to take the address should do the trick. 
> is(typeof(&S.x)) that is.

And if I have:
  S s;
  bool b = isStatic!(s.x);

That solution doesn't work if 's' is an instance.
I'm sick of writing really brittle code, I'm just saying that is another
important std.traits. There's no trivial way to do this for an _anything_ that
I can work out.

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