Thread overview | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
August 29, 2019 [Issue 20178] Add TypeInfo_Class/TypeInfo_Interface.isDerivedFrom (equivalent to of C#/Java isAssignableFrom with the argument swapped with the receiver) | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=20178 Dlang Bot <dlang-bot@dlang.rocks> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull --- Comment #1 from Dlang Bot <dlang-bot@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 -- |
August 29, 2019 [Issue 20178] Add TypeInfo_Class/TypeInfo_Interface.isDerivedFrom (equivalent to C#/Java isAssignableFrom with the argument swapped with the receiver) | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=20178 Nathan S. <n8sh.secondary@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Add |Add |TypeInfo_Class/TypeInfo_Int |TypeInfo_Class/TypeInfo_Int |erface.isDerivedFrom |erface.isDerivedFrom |(equivalent to of C#/Java |(equivalent to C#/Java |isAssignableFrom with the |isAssignableFrom with the |argument swapped with the |argument swapped with the |receiver) |receiver) -- |
August 30, 2019 [Issue 20178] Add TypeInfo_Class/TypeInfo_Interface.isBaseOf (equivalent to C#/Java isAssignableFrom) | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=20178 Nathan S. <n8sh.secondary@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Add |Add |TypeInfo_Class/TypeInfo_Int |TypeInfo_Class/TypeInfo_Int |erface.isDerivedFrom |erface.isBaseOf (equivalent |(equivalent to C#/Java |to C#/Java |isAssignableFrom with the |isAssignableFrom) |argument swapped with the | |receiver) | -- |
April 16, 2020 [Issue 20178] Add TypeInfo_Class/TypeInfo_Interface.isBaseOf (equivalent to C#/Java isAssignableFrom) | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=20178 Dlang Bot <dlang-bot@dlang.rocks> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #2 from Dlang Bot <dlang-bot@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 -- |
Copyright © 1999-2021 by the D Language Foundation