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

Merged
merged 1 commit into from Jan 13, 2012

Conversation

Projects
None yet
3 participants
Contributor

Poita commented Sep 26, 2011

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.

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

Owner

Poita replied Dec 13, 2011

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 added a commit that referenced this pull request Jan 13, 2012

Merge pull request #27 from Poita/master
Bug 6734 - Removing erroneous q{ @ } example for lex.dd

@WalterBright WalterBright merged commit 11b558e into dlang:master Jan 13, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment