[Issue 19217] New: object.destroy doesn't handle non D interfaces correctly
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Sep 4 11:29:08 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=19217
Issue ID: 19217
Summary: object.destroy doesn't handle non D interfaces
correctly
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P1
Component: druntime
Assignee: nobody at puremagic.com
Reporter: doob at me.com
The code for "object.destroy" for interfaces looks like:
void destroy(T)(T obj) if (is(T == interface))
{
destroy(cast(Object)obj);
}
Casting an interface will only work for a D interface. There are C++,
Objective-C and COM interfaces as well.
--
More information about the Digitalmars-d-bugs
mailing list