More fun with types...

Doug Gwyn (VLD/VMB) gwyn at Brl-Vld.ARPA
Sun Jan 20 16:41:53 AEST 1985


Why do you need a generic function pointer?
In any use of a function pointer, e.g.
	(*funcp)( arg1, arg2 );
the arguments must be of correct type for ANY function that
can be assigned to the pointer.  Seems to me this is just
waht one wants.  It sure would've made finding that bug in
libI77.a that I posted yesterday much simpler, since "lint"
would be able to do strict type checking on ALL type attributes
of function pointers.



More information about the Comp.lang.c mailing list