Re: why debug step by step, it s ok
- From: Keith Thompson <kst-u@xxxxxxx>
- Date: Fri, 03 Jun 2005 20:22:18 GMT
Robert Gamble <rgamble99@xxxxxxxxx> writes:
> On Fri, 03 Jun 2005 17:12:39 +0200, Emmanuel Delahaye wrote:
[...]
>> strings are not mutable...
>
> Psst: string _literals_ are not mutable.
Psst: Attempting to modify a string literal invokes undefined
behavior. One way that undefined behavior can be manifested is that
the string literal can be modified.
Saying that string literals are not mutable could imply that it's an
error that the implementation will catch. It might, or it might not.
It's up to the programmer to avoid making the mistake in the first
place.
--
Keith Thompson (The_Other_Keith) kst-u@xxxxxxx <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
.
- Follow-Ups:
- Re: why debug step by step, it s ok
- From: Robert Gamble
- Re: why debug step by step, it s ok
- References:
- why debug step by step, it s ok
- From: baumann@pan
- Re: why debug step by step, it s ok
- From: Emmanuel Delahaye
- Re: why debug step by step, it s ok
- From: Robert Gamble
- why debug step by step, it s ok
- Prev by Date: Re: How to define a common interface between C and JAVA modules
- Next by Date: Re: "comma delimited" numeric output from printf()???
- Previous by thread: Re: why debug step by step, it s ok
- Next by thread: Re: why debug step by step, it s ok
- Index(es):
Relevant Pages
|