Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!henry From: henry@utzoo.UUCP (Henry Spencer) Newsgroups: net.lang.c Subject: Re: Read-only Strings, and the (const) cast Message-ID: <4545@utzoo.UUCP> Date: Fri, 26-Oct-84 16:58:06 EDT Article-I.D.: utzoo.4545 Posted: Fri Oct 26 16:58:06 1984 Date-Received: Fri, 26-Oct-84 16:58:06 EDT References: <9498@watmath.UUCP> Organization: U of Toronto Zoology Lines: 15 > I don't really like the idea of the funny type cast, where > (const) "abc" > gives a string in read-only storage. ... Actually, it's worse than that, although your major point ("having the cast affect the thing pointed to as well as the pointer is bizarre") is valid. It's worse because the above is not a legal C fragment; it would have to be (const char *) "abc" Bletch. Down with writeable strings! -- Henry Spencer @ U of Toronto Zoology {allegra,ihnp4,linus,decvax}!utzoo!henry