Subject: Re: CVS commit: syssrc
To: Charles M. Hannum <root@ihack.net>
From: Matthew Jacob <mjacob@feral.com>
List: port-sparc64
Date: 12/30/2000 12:02:00
On Sat, 30 Dec 2000, Charles M. Hannum wrote:

> 
> >>> Read my update. It is a bug somewher and not the code.
> >>>
> >>> char *foo = "XXX"
> >>>
> >>> is not
> >>>
> >>> const char *foo = "XXX";
> >>
> >> That's true, but the *string literal* is a `const char *'.  It gets
> >> stored in the text section, and is read-only.
> >
> > I do not agree. If the pointer is not a pointer to a const, a writable
> > dereference for the object should promote the object to non-const status.
> 
> Unfortunately for you, your opinion disagrees with both GCC and the
> ANSI standard, so you lose.

Hmm. Well, if so, I can be gracious about it and note that it's been 15 years
since I did compiler work and the way *I* would do it clearly then doesn't
match the way it's being done then. Oh well.