[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:15:35 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=13397
--- Comment #10 from Kenji Hara <k.hara.pg at gmail.com> ---
(In reply to Ketmar Dark from comment #2)
> Created attachment 1395 [details]
> postfix function attributes w/o '@' (better code, allows nogc {} and nogc:)
Combination of prefix attribute and contextual keyword feature will cause
ambiguity.
struct nogc {}
nogc foo() { return *(new nogc()); } // func must not be @nogc
I think just only postfix cases should be accepted.
--
More information about the Digitalmars-d-bugs
mailing list