Re: const and K&R C - was Re: AW: A: a new bug to old plain C

David Brown via Gcc-help <[email protected]>
Newsgroups gmane.comp.gcc.help
Message-ID <[email protected]>
On 06/12/2025 07:19, Andrew C Aitchison via Gcc-help wrote:
> On Fri, 5 Dec 2025, J Decker via Gcc-help wrote:
> 
>> It was my understanding of the C standard from K&R days,
>> was that pointers could inherit const, but not lose const...
> 
> My recollection is that there was no *const* in K&R C ?
> 

There wasn't even a C standard in the K&R days.  Part of the aim of "The 
C Programming Language" was to collect the various C versions into a 
single language that could later be standardised.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.