Path: utzoo!attcan!uunet!husc6!bloom-beacon!dschmidt@athena.mit.edu From: dschmidt@athena.mit.edu (Dan Schmidt) Newsgroups: comp.std.c Subject: Re: my two cents Keywords: string constant Message-ID: <6588@bloom-beacon.MIT.EDU> Date: 8 Aug 88 02:57:23 GMT References: <5812@batcomputer.tn.cornell.edu> Sender: daemon@bloom-beacon.MIT.EDU Reply-To: dschmidt@athena.mit.edu (Dan Schmidt) Distribution: comp Organization: messy Lines: 15 In-reply-to: davidra@batcomputer.tn.cornell.edu (David A. Rabson) In article <5812@batcomputer.tn.cornell.edu>, davidra@batcomputer (David A. Rabson) writes: ] I just got my hands on a copy of the second edition of K&R and was ] distressed to read that "[string constants] are no longer modifiable, ] and so may be placed in read-only memory." ] ] This will cause mktemp() and many, many other things to break. I hope ] the committee will reconsider this: if it stays in the standard, ] people who write compilers are going to have to add a compiler option ] to turn it off. More likely, they will keep it off by default. The GNU C compiler does not allow the programmer to modify string constants. This feature can be turned off. Dan Schmidt dschmidt@athena.mit.edu