Path: csiph.com!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Tim Rentsch
Newsgroups: comp.lang.c++
Subject: Re: I think references should have been const by default
Date: Fri, 29 Oct 2021 06:45:24 -0700
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <86k0hwdjwr.fsf@linuxsc.com>
References: <87bl3d2dx2.fsf@nosuchdomain.example.com> <87r1c71z10.fsf@nosuchdomain.example.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: reader02.eternal-september.org; posting-host="b7f56eff5ad6c7d9130605d054ce58ef"; logging-data="5278"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/U6kCbJjZAvktEmPtWLXZhMLh/gyHESQM="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:gzuQDhAewZhPFdVmkbuvyPZOGQ8= sha1:B2lRoIiKW0zbuPoJKAjv6GGs7tw=
Xref: csiph.com comp.lang.c++:82177
Keith Thompson writes:
> RacingRabbit@watershipdown.co.uk writes:
>
>> On Tue, 26 Oct 2021 10:42:24 -0400
>> James Kuyper wrote:
>>
>>> On 10/26/21 4:21 AM, RacingRabbit@watershipdown.co.uk wrote:
>>>
>>>> On Mon, 25 Oct 2021 10:48:57 -0700
>>>> Keith Thompson wrote:
>>>>
>>>>> RacingRabbit@watershipdown.co.uk writes:
>>>>>
>>>>>> Any attempt to write to a read only program text area will
>>>>>> result in a crash regardless of the language. It is implicit
>>>>>> that its read only in C because C also provides the following
>>>>>> initialisation which places the string (presumably) on the
>>>>>> heap:
>>>>>>
>>>>>> char str[] = "hello world";
>>>>>
>>>>> I suggest that you would benefit more here from asking questions
>>>>> than from making assertions.
>>>>
>>>> I suggest you ease up on being patronising.
>>>
>>> You'll get less patronizing responses when you cease displaying
>>> such an abysmal understanding of C, while believing you understand
>>> it better than others.
>>
>> Says the preening fool.
>
> James is not a "preening fool". He's right.
To be fair, sometimes he is one, and sometimes the other.