On 10/16/2011 07:59 PM, Chuck Guzis wrote:
Exactly. On DG
Nova, inter alia, byte pointers and word pointers have
a different representation.
...which must make for all sorts of fun on that and similar
architectures when void* pointers are used for nearly everything...
I dislike void* as a pointer type and it infests nearly everything
and conveys no information other than "this is a pointer...to
something". Too often it's used as a lazy dodge.
I think void * is a very good thing. It's certainly useful when
writing generic, reusable functions like sorting routines, etc. I use
it all the time for stuff like that, and I've never had any problems
with it...of course I keep track of what they're pointing at. ;)
It helps to not think of them as "pointers", but simply as "memory
addresses". It's just semantics, but it can make one more comfortable
with the idea. The fact is, they're extremely useful, and they work
great. :)
-Dave
--
Dave McGuire
New Kensington, PA