Path: csiph.com!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c++ Subject: Re: I think references should have been const by default Date: Fri, 29 Oct 2021 11:11:19 -0700 Organization: None to speak of Lines: 42 Message-ID: <87lf2bzooo.fsf@nosuchdomain.example.com> References: <87bl3d2dx2.fsf@nosuchdomain.example.com> <87r1c71z10.fsf@nosuchdomain.example.com> <86k0hwdjwr.fsf@linuxsc.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="d19e72ac6c40f753288e1cb579e60581"; logging-data="5523"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19UtDN8basdmUg53OxHWw6q" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cancel-Lock: sha1:xFanktnFifhpCf2tflrf+CtRqcA= sha1:LRHh39dr1IgBUf8idRi7Uei3Xwo= Xref: csiph.com comp.lang.c++:82180 Tim Rentsch writes: > 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. To be fair, Tim, shut up. -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com Working, but not speaking, for Philips void Void(void) { Void(); } /* The recursive call of the void */