D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 6734 - Contradiction on the Lexical page on website
Summary: Contradiction on the Lexical page on website
Status: RESOLVED WORKSFORME
Alias: None
Product: D
Classification: Unclassified
Component: dlang.org (show other issues)
Version: D2
Hardware: All All
: P2 minor
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-26 11:55 UTC by Peter Alexander
Modified: 2012-01-21 00:20 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Peter Alexander 2011-09-26 11:55:32 UTC
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.
Comment 1 Walter Bright 2012-01-21 00:20:43 UTC
This was fixed.