Bug 21075 – Finalize lowering a < b for class and interface objects to .object.__cmp

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2020-07-25T15:32:07Z
Last change time
2024-12-13T19:10:22Z
Assigned to
No Owner
Creator
Andrei Alexandrescu
Moved to GitHub: dmd#19752 →

Comments

Comment #0 by andrei — 2020-07-25T15:32:07Z
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.
Comment #1 by robert.schadek — 2024-12-13T19:10:22Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19752 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB