[Issue 18633] Specify clearly if `typectors ref` is the same as `typector auto ref `
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Mar 19 22:11:32 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18633
Jonathan M Davis <issues.dlang at jmdavisProg.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |issues.dlang at jmdavisProg.co
| |m
--- Comment #1 from Jonathan M Davis <issues.dlang at jmdavisProg.com> ---
Given that auto ref is supposed to be distinct from auto, I would expect it to
be a compiler bug if ref with anything other than auto were treated the same as
auto ref.
auto by itself is supposed to be a placeholder to indicate that a variable is
being declared, and is unnecessary when another attribute or identifier clearly
indicates that a variable is being declared, and that has nothing to with auto
ref. But I have no idea how clear the spec is on that.
--
More information about the Digitalmars-d-bugs
mailing list