#Lost at C (Again!)
18-Mar-87 19:28:48
Sb: #59445-#Lost at C (Again!)
Fm: John Draper 76703,4322
To: Richard Rae/SYSOP 76703,4253
>getting used to.
It sure does. When I look at that, I do realize that it is a cast (I trust you
noticed the toungue in cheek). However, to have it make any sense to me at all,
it would need to be written differently (if that were allowed). As it is, it is
one of the many parts of C that make so little sense to me that I have to
memorize it, which is a far different thing than learning it.
For instance, when I see that particular line, or one like it, I wonder why I
can't:
1. say… (long)OpenLibrary(…
2. say… (*)OpenLibrary()…
3. Not bother casting the return value at all, since it should return a pointer
anyway, and if my lvalue is a pointer already then there is no conflict.
I mean really, why does a cast to type pointer need to specify that it is a
pointer to a structure anyway?
Regards, Larry.