Deutsch English Français Italiano |
<87fruely54.fsf@nosuchdomain.example.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson <Keith.S.Thompson+u@gmail.com> Newsgroups: comp.lang.c Subject: Re: Threads across programming languages Date: Sat, 18 May 2024 12:26:31 -0700 Organization: None to speak of Lines: 27 Message-ID: <87fruely54.fsf@nosuchdomain.example.com> References: <GIL-20240429161553@ram.dialup.fu-berlin.de> <v0ogum$1rc5n$1@dont-email.me> <v0ovvl$1ur12$4@dont-email.me> <v0p06i$1uq6q$5@dont-email.me> <v0shti$2vrco$2@raubtier-asyl.eternal-september.org> <v0spsh$31ds4$3@dont-email.me> <v0stic$325kv$3@raubtier-asyl.eternal-september.org> <v0svtn$32o8h$1@dont-email.me> <v0t091$32qj6$1@raubtier-asyl.eternal-september.org> <v0u90h$3c1r5$4@dont-email.me> <v0v28q$3ku1r$1@raubtier-asyl.eternal-september.org> <v105sc$3skqi$1@dont-email.me> <v10adm$3to7r$1@raubtier-asyl.eternal-september.org> <v124a6$drbu$1@dont-email.me> <v125f4$e2kl$1@raubtier-asyl.eternal-september.org> <v12a4e$f4f1$2@dont-email.me> <v12hf0$gtpa$1@raubtier-asyl.eternal-september.org> <20240503180102.00002f98@yahoo.com> <86zfsnqhn6.fsf@linuxsc.com> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Sat, 18 May 2024 21:26:34 +0200 (CEST) Injection-Info: dont-email.me; posting-host="9a36ccc98360bcb6fc9f801887e75987"; logging-data="3085331"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+AdzD4x87hP9vjxqclT0WF" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cancel-Lock: sha1:+RupcgAKvRcTkadUz1Y12jSUydE= sha1:B9Uv9x16YLKZ/S9Ez1Ue3bk+Ypw= Bytes: 2977 Tim Rentsch <tr.17687@z991.linuxsc.com> writes: [...] > First, a pointer is not an object. In both C and C++, any pointer, > including a function pointer, is a scalar value. A pointer value > might be held in an object but it doesn't have to be. In most cases > function pointers are not stored in objects but simply used to call > the function pointed to. [...] Certainly a pointer value is not an object. Certainly a pointer object *is* an object. It's not uncommon to informally refer to a pointer object as "a pointer". I presume you would consider such usage to be incorrect, and I don't disagree, but it is fairly common. I often find it useful to avoid referring to "pointers", and instead refer to "pointer types", "pointer values", "pointer objects", and so on (likewise for arrays). The C standard does not, as far as I can tell, provide a definition for the standalone term "pointer". (I could have missed something; I checked section 3, "Terms, definitions, and symbols", and the index.) But the standard does, in several places, use the term "pointer" to refer to a pointer value. I don't know whether it's consistent. -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com void Void(void) { Void(); } /* The recursive call of the void */