Path: utzoo!mnetor!uunet!husc6!cmcl2!brl-adm!adm!MAILER%ALASKA.BITNET@CUNYVM.CUNY.EDU From: MAILER%ALASKA.BITNET@CUNYVM.CUNY.EDU Newsgroups: comp.lang.c Subject: Undelivered mail Message-ID: <12338@brl-adm.ARPA> Date: 13 Mar 88 02:37:06 GMT Sender: news@brl-adm.ARPA Lines: 34 Subject: Re: Pointers to functions [Non-Deliverable: User does not exist or has never logged on] Reply-To: Info-C@BRL.ARPA Received: From UWAVM(MAILER) by ALASKA with Jnet id 9440 for SXJVK@ALASKA; Sat, 12 Mar 88 17:25 AST Received: by UWAVM (Mailer X1.25) id 6131; Sat, 12 Mar 88 18:25:24 PST Date: Fri, 11 Mar 88 22:15:28 GMT Reply-To: Info-C@BRL.ARPA Sender: Info-C List From: Henry Spencer Subject: Re: Pointers to functions Comments: To: info-c@BRL-SMOKE.arpa To: Vic Kapella > The idea to have the same pointer arithmetic on labels as on pointers to > functions seems to be a good one (in my opinion)... X3J11 supports this view entirely, since neither is allowed to participate in arithmetic in any way. This is a practical necessity; on some machines, pointers to functions are very strange "magic cookies" whose contents don't even slightly resemble pointers to data, and pointers to random spots in the code basically don't exist. > ... Secondly this would allow additional entry points into functions. Some machines cannot do this, period. It's also not at all clear that it is particularly useful, which is probably why nobody ever did anything with the "entry" keyword. -- Those who do not understand Unix are | Henry Spencer @ U of Toronto Zoology condemned to reinvent it, poorly. | {allegra,ihnp4,decvax,utai}!utzoo!henry