August 29, 2014 [Issue 13397] New: allow postfix function attributes like 'safe', 'system' and so on without '@' | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=13397 Issue ID: 13397 Summary: allow postfix function attributes like 'safe', 'system' and so on without '@' Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P1 Component: DMD Assignee: nobody@puremagic.com Reporter: ketmar@ketmar.no-ip.org Created attachment 1394 --> https://issues.dlang.org/attachment.cgi?id=1394&action=edit postfix function attributes w/o '@' this is another attempt to introduce some consistency in UDA-like and keyword function attributes. instead of allowing '@' everywhere (as in bug #13388) this patch allows omiting '@' in postfix attributes, yet not turning them into keywords (so one still can use variable names like 'system'). i.e. this is now valid: void foo () system nogc { … } -- |
Copyright © 1999-2021 by the D Language Foundation