On Thursday, December 1, 2022 at 11:36:52 PM UTC, T wrote:
On 12/1/22 06:18, Paul N wrote:
In my opinion this is a confusing use of the word "void"
"Void" always gets me too.
I see it as a pointer that can point to any type
of structure.
Yes, that's right. I sometimes think of it as "a pointer wrapped in a blanket". At some point in the past the value was used to actually put something into memory. At some point in the future it will be used to fish something out of memory. But at the
moment, it's a pointer to something and we don't care for the moment what the "something" is.
void
adjective
Containing no matter; empty.
Not occupied; unfilled.
Completely lacking; devoid: synonym: empty.
Real bad name to have picked.
I think part of the idea is to keep the number of "keywords" to a minimum, so they keep using the same word for lots of different things. In C, "static" has several meanings that are not easy to reconcile, and in C++ it gets at least one more meaning.
There are people who say that the various meanings of "void" in C are all the same concept, but I have a degree in Maths and I have difficulty seeing it that way so I imagine most other people do too.
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)