[EMAIL PROTECTED] wrote:
Nothing in ISO C standard disallows this.  ISO C explicitly states
that changing the value of a string literal is undefined behavior.
So placing them in read-only sections and folding them together is
undetectable in a conforming program.


I think he referred to the outcome of such a test:


        if ("false" == "false") ...


Would 1 be a conforming result?

Yes, refer to 6.4.5 String Literals, paragraph 6, where it says:

It is unspecified whether these arrays are distinct provided their elements 
have the
appropriate values. If the program attempts to modify such an array, the 
behavior is
undefined.
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to