[Issue 24176] New: Parameters of opApply delegate don't have to be `ref`
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Oct 6 12:26:34 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=24176
Issue ID: 24176
Summary: Parameters of opApply delegate don't have to be `ref`
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: enhancement
Priority: P1
Component: dlang.org
Assignee: nobody at puremagic.com
Reporter: nick at geany.org
The spec should be clearer on that.
Also a `ref` parameter of the delegate can accept non-ref foreach variables.
PR incoming.
--
More information about the Digitalmars-d-bugs
mailing list