Bug 6734 – Contradiction on the Lexical page on website
Status
RESOLVED
Resolution
WORKSFORME
Severity
minor
Priority
P2
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
All
Creation time
2011-09-26T11:55:00Z
Last change time
2012-01-21T00:20:43Z
Assigned to
nobody
Creator
peter.alexander.au
Comments
Comment #0 by peter.alexander.au — 2011-09-26T11:55:32Z
The lexical page: http://www.d-programming-language.org/lex.html
One example given for token strings is:
q{ @ } // error, @ is not a valid D token
However, @ is clearly listed as a token in the grammar specification earlier on the same page. Also, DMD accepts q{ @ } as a valid string (with expected value " @ ").
This is a contradiction: either it is a valid token or it is not.