[Issue 21075] New: Finalize lowering a < b for class and interface objects to .object.__cmp
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jul 25 15:32:07 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=21075
Issue ID: 21075
Summary: Finalize lowering a < b for class and interface
objects to .object.__cmp
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: andrei at erdani.com
Currently https://github.com/dlang/dmd/pull/9629 and
https://github.com/dlang/druntime/pull/2562 are not finished. This means class
objects are compared for ordering using __cmp when part of arrays, and with
opCmp when not. Looks like some compiler finesse is needed on the dmd side.
--
More information about the Digitalmars-d-bugs
mailing list