🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #5265

Re: my two cents

#5265
From: Dan Schmidt
Date: Mon, 08 Aug 1988 02:57
15 lines
1236 bytes
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
Technical Details
Message-ID: <6588@bloom-beacon.MIT.EDU>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!bloom-beacon!dschmidt@athena.mit.edu
References: <5812@batcomputer.tn.cornell.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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)