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

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Aug 29 00:28:41 PDT 2014


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 at puremagic.com
          Reporter: ketmar at 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 { … }

--


More information about the Digitalmars-d-bugs mailing list