Re: Highly efficient string reversal code
On Sat, 27 Sep 2008 17:15:00 -0700, vippstar wrote:
[snip]
[snip]
Ignoring some of the confusion over wording, you didn't. I was replying to
a message of Barry Schwarz, who did, and you thought you and he were in
agreement. Are we all clear now?
On Sat, 27 Sep 2008 17:15:00 -0700, vippstar wrote:
On Sep 27, 11:27 pm, CBFalconer <cbfalco...@yah oo.comwrote:
>vipps...@gmail .com wrote:
>>
Harald van Djik <true...@gmail. comwrote:
>Barry Schwarz wrote:
>>CBFalconer <cbfalco...@yah oo.comwrote:
>>>No it doesn't. foo is a char array. foo[1] is a char. By
>>>definition , a char cannot have unused bits. Therefore *(p1 + 1)
>>>is a valid char even though uninitialized.
>Barry Schwarz wrote:
>>CBFalconer <cbfalco...@yah oo.comwrote:
>>>No it doesn't. foo is a char array. foo[1] is a char. By
>>>definition , a char cannot have unused bits. Therefore *(p1 + 1)
>>>is a valid char even though uninitialized.
>>The issue is not whether foo[1] could possibly be a trap
>>representatio n (or otherwise invalid) but whether it is
>>indetermina te or not. Evaluating an indeterminate value invokes
>>undefined behavior.
>>representatio n (or otherwise invalid) but whether it is
>>indetermina te or not. Evaluating an indeterminate value invokes
>>undefined behavior.
I think mr Schwarz agreed with what I said, in which case he's also
correct.
correct.
Where have I claimed that it's undefined because the program accesses
that value?
that value?
a message of Barry Schwarz, who did, and you thought you and he were in
agreement. Are we all clear now?
Comment