[Issue 14612] typeid(interface) returns TypeInfo_Class object

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Jun 2 05:43:55 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=14612

Kenji Hara <k.hara.pg at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #1 from Kenji Hara <k.hara.pg at gmail.com> ---
(In reply to Kenji Hara from comment #0)
> 2. Separate ClassInfo from TypeInfo_Class again and define TypeInfo
> hierarchy as follows:
> 
> abstract class ClassInfo : TypeInfo { ... }
> class TypeInfo_Class : ClassInfo { ... }
> class TypeInfo_Interface : ClassInfo { ... }
> 
> Pros: By handling ClassInfo, the runtime cost in dynamic cast operation can
> be kept same with today's.
> Cons: If an user still using the name 'ClassInfo', the code behavior will be
> changed.

Implemented:
https://github.com/D-Programming-Language/dmd/pull/4711
https://github.com/D-Programming-Language/druntime/pull/1295

--


More information about the Digitalmars-d-bugs mailing list