Thread overview | ||||||
---|---|---|---|---|---|---|
|
August 15, 2013 ClassInfo.find not working for nested classes | ||||
---|---|---|---|---|
| ||||
I just noticed that ClassInfo.find not working for nested classes, even if they are static. For example: unittest { static class Foo { } auto name = Foo.classinfo.name; assert(ClassInfo.find(name) is null); // unfortunately passes } I was about to try the documented unit test feature in my work on std.serialization but I want to have the type I'm serializing visible in the example as well. Is it possible to fix somehow? I looked at the symbol table and it seems the class info is there, but ClassInfo.find just can't find it. 0000000100040980 D _D4test14__unittestL7_1FZv3Foo6__initZ 0000000100040a50 D _D4test14__unittestL7_1FZv3Foo6__vtblZ 00000001000409b0 D _D4test14__unittestL7_1FZv3Foo7__ClassZ -- /Jacob Carlborg |
August 19, 2013 Re: ClassInfo.find not working for nested classes | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | On Thursday, 15 August 2013 at 20:12:44 UTC, Jacob Carlborg wrote:
> I just noticed that ClassInfo.find not working for nested classes, even if they are static. For example:
Bugzilla?
|
August 19, 2013 Re: ClassInfo.find not working for nested classes | ||||
---|---|---|---|---|
| ||||
Posted in reply to ilya-stromberg | On 2013-08-19 16:10, ilya-stromberg wrote: > Bugzilla? Yeah, I was hoping to start a discussion here to see if it's even possible to support. -- /Jacob Carlborg |
August 19, 2013 Re: ClassInfo.find not working for nested classes | ||||
---|---|---|---|---|
| ||||
Posted in reply to ilya-stromberg | On 2013-08-19 16:10, ilya-stromberg wrote: > Bugzilla? Added: http://d.puremagic.com/issues/show_bug.cgi?id=10853 -- /Jacob Carlborg |
Copyright © 1999-2021 by the D Language Foundation