[Issue 13397] allow postfix function attributes like 'safe', 'system' and so on without '@'

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Aug 29 02:23:39 PDT 2014


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

--- Comment #11 from Ketmar Dark <ketmar at ketmar.no-ip.org> ---
(In reply to Kenji Hara from comment #10)
> Combination of prefix attribute and contextual keyword feature will cause
> ambiguity.
> I think just only postfix cases should be accepted.

and my patch description clearly says that it's only for "postfix function
attributes". ;-)

i strongly believe that we should deprecate and kill prefix attributes anyway.

one thing i did wrong is supporting for `nogc {}` and `nogc:` — i should check
for '{' and ':' before deciding if 'nogc' is identifier or attribute. have to
fix my patch.

--


More information about the Digitalmars-d-bugs mailing list