Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Bug 6734 - Removing erroneous q{ @ } example for lex.dd #27

Merged
merged 1 commit into from

3 participants

@Poita

See http://d.puremagic.com/issues/show_bug.cgi?id=6734

I have assumed that, since DMD compiles q{ @ } as expected, that the documentation is incorrect. This small adjustment fixes this.

@andralex
Owner

Wasn't this supposed to be precisely an example of erroneous code?

That's the point, it's not an error. @ is a valid token therefore q{ @ } is not an error. Also, dmd accepts it without error.

See: http://www.d-programming-language.org/lex.html

@ is clearly listed in the Tokens section.

@WalterBright WalterBright merged commit 11b558e into D-Programming-Language:master
@ghost Unknown referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
@ghost Unknown referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
@ghost Unknown referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 25, 2011
  1. @Poita
This page is out of date. Refresh to see the latest.
Showing with 0 additions and 1 deletion.
  1. +0 −1  lex.dd
View
1  lex.dd
@@ -566,7 +566,6 @@ q"/abc/def/" // error
q{foo} // "foo"
q{/*}*/ } // "/*}*/ "
q{ foo(q{hello}); } // " foo(q{hello}); "
-q{ @ } // error, @ is not a valid D token
q{ __TIME__ } // " __TIME__ ", i.e. it is not replaced with the time
q{ __EOF__ } // error, as __EOF__ is not a token, it's end of file
---
Something went wrong with that request. Please try again.