Jason Merrill
2010-03-26 21:45:10 UTC
At the Pittsburgh meeting earlier this month, the committee approved
several significant changes to raw strings:
1) Making them truly raw by reverting any transformations of extended
characters/UCNs, trigraphs or backslash/newline.
2) Avoiding other trigraph issues by changing the inner delimiters from
[] to ().
3) Avoiding UCN issues in the delimiters by prohibiting '\'.
I think we really want at least #2 in 4.5, preferably all 3, as it will
be the first release with raw string support.
I've attached two patches to implement these changes. The first
implements #2 and #3, the second patch implements #1. I think they are
safe to go in now, as the only change to non-raw string code is to pass
down line notes into lex_raw_string.
Any comments?
several significant changes to raw strings:
1) Making them truly raw by reverting any transformations of extended
characters/UCNs, trigraphs or backslash/newline.
2) Avoiding other trigraph issues by changing the inner delimiters from
[] to ().
3) Avoiding UCN issues in the delimiters by prohibiting '\'.
I think we really want at least #2 in 4.5, preferably all 3, as it will
be the first release with raw string support.
I've attached two patches to implement these changes. The first
implements #2 and #3, the second patch implements #1. I think they are
safe to go in now, as the only change to non-raw string code is to pass
down line notes into lex_raw_string.
Any comments?