www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - TypeInfo: how much breakage?

reply Andrei Alexandrescu <SeeWebsiteForEmail erdani.com> writes:
The new TypeInfo design offers some interesting opportunities. Some of 
them are possible if we break some of the existing compatibility. The 
documented types are:

TypeInfo: https://dlang.org/library/object/type_info.html

TypeInfo_Class: https://dlang.org/library/object/type_info__class.html

I wonder to what extent people are using other undocumented derivatives 
of TypeInfo such as TypeInfo_Struct.
Jul 29 2020
parent reply Johan <j j.nl> writes:
On Wednesday, 29 July 2020 at 21:00:50 UTC, Andrei Alexandrescu 
wrote:
 The new TypeInfo design offers some interesting opportunities. 
 Some of them are possible if we break some of the existing 
 compatibility. The documented types are:

 TypeInfo: https://dlang.org/library/object/type_info.html

 TypeInfo_Class: 
 https://dlang.org/library/object/type_info__class.html

 I wonder to what extent people are using other undocumented 
 derivatives of TypeInfo such as TypeInfo_Struct.
Weka does not appear to use any. (only TypeInfo_Class in one instance, but only copying it, not accessing the members) -Johan
Jul 29 2020
parent Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 7/29/20 5:33 PM, Johan wrote:
 On Wednesday, 29 July 2020 at 21:00:50 UTC, Andrei Alexandrescu wrote:
 The new TypeInfo design offers some interesting opportunities. Some of 
 them are possible if we break some of the existing compatibility. The 
 documented types are:

 TypeInfo: https://dlang.org/library/object/type_info.html

 TypeInfo_Class: https://dlang.org/library/object/type_info__class.html

 I wonder to what extent people are using other undocumented 
 derivatives of TypeInfo such as TypeInfo_Struct.
Weka does not appear to use any. (only TypeInfo_Class in one instance, but only copying it, not accessing the members)
Thank you!
Jul 29 2020