Skip to content

Commit

Permalink
fix Issue 2639 - Hex and octal string values not completely specified
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Jan 23, 2012
1 parent 59d3635 commit 15151c4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lex.dd
Original file line number Diff line number Diff line change
Expand Up @@ -480,12 +480,12 @@ r"a" "bc"
$(V1 \x61"bc")
-----------------

The optional $(I StringPostfix) character gives a specific type
$(P The optional $(I StringPostfix) character gives a specific type
to the string, rather than it being inferred from the context.
This is useful when the type cannot be unambiguously inferred,
such as when overloading based on string type. The types corresponding
to the postfix characters are:
<p>
)

$(TABLE2 String Literal Postfix Characters,
$(THEAD Postfix, Type)
Expand All @@ -500,6 +500,10 @@ $(V1 \x61"bc")
"hello"d // dchar[]
---

$(P The string literals are assembled as UTF-8 char arrays,
and the postfix is applied
to convert to wchar or dchar as necessary as a final step.)

$(P String literals are read only. Writes to string literals
cannot always be detected, but cause undefined behavior.)

Expand Down

0 comments on commit 15151c4

Please sign in to comment.