Sujet : Re: Memory protection between compilation units?
De : Keith.S.Thompson+u (at) *nospam* gmail.com (Keith Thompson)
Groupes : comp.lang.cDate : 13. Jun 2025, 20:32:29
Autres entêtes
Organisation : None to speak of
Message-ID : <87v7ozh1yq.fsf@nosuchdomain.example.com>
References : 1 2 3 4
User-Agent : Gnus/5.13 (Gnus v5.13)
wij <
wyniijj5@gmail.com> 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.comvoid Void(void) { Void(); } /* The recursive call of the void */