[Issue 20178] Add TypeInfo_Class/TypeInfo_Interface.isDerivedFrom (equivalent to of C#/Java isAssignableFrom with the argument swapped with the receiver)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Aug 29 00:09:32 UTC 2019


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

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

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

--- Comment #1 from Dlang Bot <dlang-bot at dlang.rocks> ---
@n8sh created dlang/druntime pull request #2770 "Give
TypeInfo_Class/TypeInfo_Interface.isDerivedFrom like C#/Java isAssignableFrom"
fixing this issue:

- Fix Issue 20178 - Add TypeInfo_Class/TypeInfo_Interface.isDerivedFrom

  Equivalent to C#/Java isAssignableFrom with the argument swapped with
  the receiver. 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.

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

--


More information about the Digitalmars-d-bugs mailing list