derived types

Guy Harris guy at rlgvax.UUCP
Tue Feb 5 16:10:11 AEST 1985


> i DO believe that sizeof(foo *) should be sizeof(bar *). otherwise it's
> just too confusing. more irrational viewpoints later.

It's too confusing only if you're easily confused.  Cast your d*mn pointers
properly (like "lint" tells you to do) and lots of problems go away.
If you absolutely *need* a pointer that can point to any one of ten
things, and a union of ten pointer types won't do, use "char *" (or "void *"
if/when it appears in the ANSI standard).

	Guy Harris
	{seismo,ihnp4,allegra}!rlgvax!guy



More information about the Comp.lang.c mailing list