Bug 24627 – Disallow qualifiers as member function attributes in prefix notation

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2024-06-24T11:35:45Z
Last change time
2024-12-13T19:35:57Z
Assigned to
No Owner
Creator
Bolpat
Moved to GitHub: dmd#20474 →

Comments

Comment #0 by qs.il.paperinik — 2024-06-24T11:35:45Z
Issue 4070 was rejected on the grounds of symmetry. My sense is that Walter’s objections are invalid. There is precedent for asymmetry on function declarations: `ref` prefix-only. Worse, `ref const int f() { }` really, really looks like `const` applies to the return type. If breakage is deemed too much, this can be done in the next edition of D (assuming editions are being implemented). All prefix type constructors should be applied to the return type. Everything that affects the function (or function type) or the implicit this goes at the end as a (member) function attribute.
Comment #1 by robert.schadek — 2024-12-13T19:35:57Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/20474 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB