We started to discuss mantis item 1789 in the sv-ec this morning. Below are a couple of references from draft 2 that I was trying to get at in the meeting. I believe that these references confirm that the example in the proposal for 1789 is valid. string s1 = "hello\0world"; // sets s1 to "helloworld" - Is \0 allowed in a string literal? See sub-clause 5.9.1 Special characters in strings, table 5-1 The \0 is allowed. - The \0 is ignored when assigned to a string See sub-clause 7.6. "A string shall not contain the special character "\0". Assigning the value 0 to a string character shall be ignored." Neil -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Mon Apr 30 17:14:56 2007
This archive was generated by hypermail 2.1.8 : Mon Apr 30 2007 - 17:15:06 PDT