April 16, 2011 [Issue 1386] "string expected" when using allMembers-element in __traits(getMember, ...) | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1386 Don <clugdbug@yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |clugdbug@yahoo.com.au --- Comment #9 from Don <clugdbug@yahoo.com.au> 2011-04-15 21:33:24 PDT --- The error message is: test2.d(22): Error: no property '__T4TempTkZ' for type 'test2.Asdf' Some kind of junk tuple members are being included in allMembers. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
September 22, 2011 [Issue 1386] "string expected" when using allMembers-element in __traits(getMember, ...) | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1386 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #10 from Kenji Hara <k.hara.pg@gmail.com> 2011-09-22 10:20:26 PDT --- In 2.055, The problem in comment #9 does not occur by fixing bug 2234. Therefore original sample code in comment #0 might work as expected. But class has a member interface Monitor, so > typeid(typeof(__traits(getMember, a, member)))) will fail to compile. If you change `class Asdf` into `struct Asdf`, you'll get following output: asdf test.Temp!(uint).Temp qwer test.Temp!(string).Temp yxcv test.Temp!(real,real).Temp -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation