Path: csiph.com!news.swapon.de!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson 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: <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= Xref: csiph.com comp.lang.c:384617 Tim Rentsch 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 */