digitalmars.D.learn - TypeInfo_Class.interfaces has TypeInfo_Class and not
- Tofu Ninja (4/4) Dec 14 2017 TypeInfo_Class.interfaces has TypeInfo_Class and not
- Tofu Ninja (9/13) Dec 15 2017 Also the following code prints false so there are some
TypeInfo_Class.interfaces has TypeInfo_Class and not TypeInfo_Interface? Is this correct? Or is it a bug? Doesn't make much sense to me.
Dec 14 2017
On Friday, 15 December 2017 at 05:19:04 UTC, Tofu Ninja wrote:TypeInfo_Class.interfaces has TypeInfo_Class and not TypeInfo_Interface? Is this correct? Or is it a bug? Doesn't make much sense to me.Also the following code prints false so there are some consequences to this. import std.stdio; void main(string[] args) { writeln(typeid(c).interfaces[0].classinfo == typeid(i)); } interface i {} class c : i {}
Dec 15 2017