Thread overview
[Issue 4588] New: [lex] @ttributes are not documented
Aug 05, 2010
Sobirari Muhomori
Jan 11, 2011
Bernard Helyer
Jan 11, 2011
Jonathan M Davis
Jan 22, 2011
Ellery Newcomer
Jan 24, 2012
Walter Bright
August 05, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4588

           Summary: [lex] @ttributes are not documented
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: www.digitalmars.com
        AssignedTo: nobody@puremagic.com
        ReportedBy: dfj1esp02@sneakemail.com


--- Comment #0 from Sobirari Muhomori <dfj1esp02@sneakemail.com> 2010-08-05 10:01:07 PDT ---
http://www.digitalmars.com/d/2.0/lex.html
@ character is not listed as a token.

http://www.digitalmars.com/d/2.0/attribute.html
Various attributes like @safe and @pure are not listed.

http://www.digitalmars.com/d/2.0/function.html
Alternative syntax for pure and nothrow attributes is not documented.

http://www.digitalmars.com/d/2.0/declaration.html
New function attributes like @safe and @trusted are not listed neither as
StorageClass nor as FunctionAttribute.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 11, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=4588


Bernard Helyer <blood.of.life@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |blood.of.life@gmail.com


--- Comment #1 from Bernard Helyer <blood.of.life@gmail.com> 2011-01-10 17:50:15 PST ---
It's not that there's an alternative syntax for pure and nothrow, it's that (like immutable) they are both a storage class and attributes (the attribute form merely imbuing scoped declarations with the corresponding storage class). They should be listed in the attribute page, but aren't.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 11, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=4588


Jonathan M Davis <jmdavisProg@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jmdavisProg@gmx.com


--- Comment #2 from Jonathan M Davis <jmdavisProg@gmx.com> 2011-01-10 19:09:22 PST ---
I would expect @pure and @nothrow to be going away. It was decided to go with pure and nothrow rather than @pure and @nothrow, so I don't see why the @ versions would be sticking around. We ended up with both, because it was debated as to what should use @ and what should be a keyword.

@safe, @trusted, and @system are all valid, as is @property. However, I can't think of any others at the moment which are actually currently supposed to have @ on the front.

And as for @ being a token, I'm not sure that it _is_ a token. I'd have to look at the lexer code to verify one way or another. Given the way that @ is used, I think that there's a decent chance that @safe, @trusted, @system, and @property are all considered tokens and @ isn't. I would like it to be though, since it would be necessary if we're ever going to get user-defined attributes.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 22, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=4588


Ellery Newcomer <ellery-newcomer@utulsa.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ellery-newcomer@utulsa.edu


--- Comment #3 from Ellery Newcomer <ellery-newcomer@utulsa.edu> 2011-01-22 13:06:41 PST ---
(In reply to comment #0)
> http://www.digitalmars.com/d/2.0/lex.html
> @ character is not listed as a token.
> 

It is listed as a token now

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 24, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=4588


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
         Resolution|                            |WORKSFORME


--- Comment #4 from Walter Bright <bugzilla@digitalmars.com> 2012-01-23 21:39:40 PST ---
These are all taken care of.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------