Bug 3783 – Text inconsistent with EscapeSequence rules
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
All
Creation time
2010-02-08T19:00:00Z
Last change time
2015-06-09T01:27:41Z
Keywords
spec
Assigned to
nobody
Creator
jlquinn
Comments
Comment #0 by jlquinn — 2010-02-08T19:00:37Z
The lexical grammar rules say that an EscapeSequence must be contained in a single or double quoted literal. The text still says that a bare escape sequence is a valid string.
The current DMD compiler has deprecated bare escape sequences, so the spec text should be updated as well.
Comment #1 by jlquinn — 2010-02-08T19:05:56Z
The "Hex Strings" section has a bare escape sequence that should be changed as well:
The following are all equivalent:
"ab" "c"
r"ab" r"c"
r"a" "bc"
"a" ~ "b" ~ "c"
\x61"bc"
Comment #2 by github-bugzilla — 2012-01-22T13:23:54Z