Bug 18500 – Be able to overwrite object.Object.toString with inout

Status
NEW
Severity
enhancement
Priority
P4
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-02-23T00:59:31Z
Last change time
2024-12-07T13:38:02Z
Assigned to
No Owner
Creator
Seb
Moved to GitHub: dmd#17359 →

Comments

Comment #0 by greensunny12 — 2018-02-23T00:59:31Z
cat << EOF | dmd -c -o- -run - void main() { class F { override string toString() inout @safe { return "Foo"; } } } EOF I'm aware that the current overloading rules don't really take `inout` into account, but defining all three overloads is really annoying. See also: https://issues.dlang.org/show_bug.cgi?id=9772 (removing toString from Object)
Comment #1 by robert.schadek — 2024-12-07T13:38:02Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17359 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB