[Issue 20178] Add TypeInfo_Class/TypeInfo_Interface.isBaseOf (equivalent to C#/Java isAssignableFrom)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Apr 16 19:31:06 UTC 2020


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

Dlang Bot <dlang-bot at dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/druntime pull request #2770 "Give
TypeInfo_Class/TypeInfo_Interface.isBaseOf like C#/Java isAssignableFrom" was
merged into master:

- bc10972b8e5d6c70a9fce3abcc598f6cf120f08d by Nathan Sashihara:
  Fix Issue 20178 - Add TypeInfo_Class/TypeInfo_Interface.isBaseOf

  Equivalent to C#/Java isAssignableFrom. Naming the method
  "isAssignableFrom" would be more familiar to people coming from C#/Java
  but is potentially misleading: "alias this" and overloadable opAssign
  mean that this would not actually indicate whether values of one type
  could be assigned to another.

  Adding qualifiers to rt.cast_ functions.

https://github.com/dlang/druntime/pull/2770

--


More information about the Digitalmars-d-bugs mailing list