Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!henry From: henry@utzoo.UUCP (Henry Spencer) Newsgroups: net.lang.c Subject: Re: Ptr to func doesn't like casting?? Message-ID: <4701@utzoo.UUCP> Date: Thu, 29-Nov-84 17:52:19 EST Article-I.D.: utzoo.4701 Posted: Thu Nov 29 17:52:19 1984 Date-Received: Thu, 29-Nov-84 17:52:19 EST References: <13900010@acf4.UUCP>, <4688@utzoo.UUCP> Organization: U of Toronto Zoology Lines: 9 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