Bug 24679 – [ref variables] Allow `auto ref`

Status
NEW
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2024-07-24T17:02:54Z
Last change time
2024-12-13T19:36:42Z
Assigned to
No Owner
Creator
Bolpat
Depends on
4707
See also
https://issues.dlang.org/show_bug.cgi?id=11934
Moved to GitHub: dmd#18261 →

Comments

Comment #0 by qs.il.paperinik — 2024-07-24T17:02:54Z
In particular for meta-programming, but also generally useful: Allow `auto ref` variables that are `ref` if and only if their initializer is an lvalue.
Comment #1 by nick — 2024-08-19T10:58:48Z
Implemented for local variables: https://github.com/dlang/dmd/pull/16771 > Still need to do globals and foreach
Comment #2 by robert.schadek — 2024-12-13T19:36:42Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18261 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB