Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Memory protection between compilation units? Date: Fri, 13 Jun 2025 12:32:29 -0700 Organization: None to speak of Lines: 19 Message-ID: <87v7ozh1yq.fsf@nosuchdomain.example.com> References: <20250611153239.6bc43323@mateusz> <86wm9hp0u2.fsf@linuxsc.com> <102geup$38k6o$2@raubtier-asyl.eternal-september.org> <92d8fbd8b5ae741ee915fdf4d95e5a374108f37f.camel@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Fri, 13 Jun 2025 21:32:31 +0200 (CEST) Injection-Info: dont-email.me; posting-host="bd374f2023d1546274f7b03d2639e00e"; logging-data="3814907"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/lRLPP6VDVQMZ+cAyek8MZ" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:8FbulwC7fx8S5zjzURLlCzURfRc= sha1:TJ3LxByuenZMhCwf/SpaY10ZYH8= wij writes: > On Fri, 2025-06-13 at 08:03 +0200, Bonita Montero wrote: >> Am 12.06.2025 um 15:05 schrieb Tim Rentsch: >> >> >     void update_my_socks(int *sock, int val) { >> >        const unsigned N = sizeof socks / sizeof socks[0]; >> >        socks[val % N] = sock; >> >     } >> >> For someone who uses bounds-checked containers in C++ every day >> this really looks achaic. > > Really? What are they? Feel free to discuss that in comp.lang.c++. -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com void Void(void) { Void(); } /* The recursive call of the void */