Ptr to func doesn't like casting??

Henry Spencer henry at utzoo.UUCP
Fri Nov 30 08:52:19 AEST 1984


A friend has pointed out that although the ANSI C draft does indeed
outlaw casts between function pointers and data pointers, it lists
such casts in the "common extensions" appendix.  It's hard to do things
like debuggers and on-the-fly code generation without such casts.  But
use of casts, instead of unions, for more mundane requirements remains
a poor idea.
-- 
				Henry Spencer @ U of Toronto Zoology
				{allegra,ihnp4,linus,decvax}!utzoo!henry



More information about the Comp.lang.c mailing list