Subject: Re: CVS commit: syssrc
To: Matthew Jacob <mjacob@netbsd.org>
From: Charles M. Hannum <root@ihack.net>
List: source-changes
Date: 12/30/2000 19:59:15
>>> 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.