[Issue 11632] Old alias syntax accepts "ref"

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jan 10 00:24:27 UTC 2021


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

Bolpat <qs.il.paperinik at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |qs.il.paperinik at gmail.com

--- Comment #7 from Bolpat <qs.il.paperinik at gmail.com> ---
The grammar allows this to make

alias RefDG = ref int delegate();

legal. Having ref be accepted but with no effect is nothing special about the D
compiler. It accepts a lot of annotations that have no effect.

The question which cases are accepts-invalid and which are not is mostly a
matter of taste.

--


More information about the Digitalmars-d-bugs mailing list