Newsgroups: comp.lang.c Path: utzoo!henry From: henry@utzoo.uucp (Henry Spencer) Subject: Re: Pointers to functions Message-ID: <1988Mar11.221528.1392@utzoo.uucp> Organization: U of Toronto Zoology References: <7811@tut.cis.ohio-state.edu- <7689@pur-ee.UUCP>, <585@tuvie> Date: Fri, 11 Mar 88 22:15:28 GMT > 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