www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 24679] New: [ref variables] Allow `auto ref`

https://issues.dlang.org/show_bug.cgi?id=24679

          Issue ID: 24679
           Summary: [ref variables] Allow `auto ref`
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: qs.il.paperinik gmail.com

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.

--
Jul 24