Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!decvax!harpo!gummo!whuxlb!floyd!vax135!ukc!root44!jmc From: jmc@root44.UUCP (John Collins) Newsgroups: net.lang.c Subject: Re: A tuff question about strings Message-ID: <4143@root44.UUCP> Date: Wed, 17-Aug-83 05:48:13 EDT Article-I.D.: root44.4143 Posted: Wed Aug 17 05:48:13 1983 Date-Received: Sun, 21-Aug-83 23:35:30 EDT References: sdcsvax.3648 Lines: 15 Personally, I think that constants in a program ought to be exactly that, and not something which might be what they look like the first time through, and something else the next time. There is an old chestnut about assigning to a Fortran argument which has been passed as a constant. Some languages (e.g. BCPL, and (in a different sense) COBOL) allow you to change 'goto's whilst the program is running to make them 'goto' somewhere else. UGH!! However K&R p181 says that strings are 'storage class static'. I suppose that does decide the issue. I think we do need a syntax for 'readonly' storage classes, both for strings and external/static stuff so we can stop patching assembler output, however that subject has already been aired rather a lot... John Collins ....!vax135!ukc!root44!jmc