Re: why debug step by step, it s ok



"Emmanuel Delahaye" <emdel@xxxxxxxxxxxxxx> writes:
> Robert Gamble wrote on 04/06/05 :
>> I thought about clarifying that but decided not to assuming that the
>> "without invoking undefined behavior" part was implied and trying not
>> to be too pedantic as I know what Emmanuel meant ;)
>
> Ok, I rephrase it:
>
> "The C langage doesn't guarantee that a string literal is mutable".

Another way to put it is that you can't go wrong assuming that string
literals are immutable.

That's not quite true if you're trying to figure out why code that
modifies a string literal *seems* to be working, but it's a good rule
for writing new code.

--
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.
.



Relevant Pages

  • Re: [Crit] Life for a life
    ... A little clarifying could sure help. ... but by clarifying I mean that you could say it was a frog's writing ... protagonists copies the writing from the mud into the notebook (evading ...
    (rec.arts.sf.composition)
  • Re: Whats going onto the stack here?
    ... I appreciate this response. ... Thankyou for clarifying that, it did throw me a little bit. ... My intent is not to sound unproductive but after writing so much code one ...
    (microsoft.public.vc.language)
  • Re: OT - Intelligent Design
    ... > existance. ... Thank you for clarifying. ... Prev by Date: ...
    (misc.survivalism)
  • Re: Fire hazards with oil finishes
    ... Unfortunately, each time I do it, I end up clarifying my initial post ... I believe it was William Zinsser, in "On Writing Well," who said that the ... If you find that your writing is so consistently misunderstood, ...
    (rec.woodworking)
  • Re: Decoupling musing
    ... Yes of course, not thinking straight. ... Thanks for clarifying that. ... Mike W ... Prev by Date: ...
    (comp.lang.java.programmer)