TypeInfo_Class.interfaces[n].classinfo has TypeInfo_Class and not TypeInfo_Interface?

rjframe dlang at ryanjframe.com
Thu Dec 28 03:09:01 UTC 2017


On Wed, 27 Dec 2017 23:28:27 +0000, Tofu Ninja wrote:

> On Sunday, 24 December 2017 at 05:21:44 UTC, Tofu Ninja wrote:
> 
> I guess I will just not get an answer to this, seems like just some
> weirdness of D that will just stick there. The typeinfo system seems
> really half baked and really provides very little in terms of
> usefulness.

What are you trying to do? Will std.traits.InterfacesTuple[1] or 
BaseTypeTuple[2] do what you need?


[1]: https://dlang.org/phobos/std_traits.html#.InterfacesTuple
[2]: https://dlang.org/phobos/std_traits.html#.BaseTypeTuple


More information about the Digitalmars-d mailing list