Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!columbia!rutgers!gatech!linus!mbunix!jfjr From: jfjr@mitre-bedford.ARPA (Jerome Freedman) Newsgroups: comp.lang.c Subject: RE: What can I get away with Message-ID: <8190@linus.UUCP> Date: Tue, 30-Jun-87 14:51:44 EDT Article-I.D.: linus.8190 Posted: Tue Jun 30 14:51:44 1987 Date-Received: Wed, 1-Jul-87 06:47:26 EDT References: <608@zen.UUCP> <2299@hoptoad.uucp> <21211@sun.uucp> <830@omepd> <830@mcgill-vision.UUCP> Sender: news@linus.UUCP Reply-To: jfjr@mbunix (Freedman) Organization: The MITRE Corporation, Bedford, Mass. Lines: 25 Suppose I declare an array of pointers to functions in one module. I write a function, in the same module, which will install functions in this array -call the function "install". In a different module I write a function, call it "new_function". I make NO attempt at making "new_function" visible anywhere outside of the module in which it is written. I call install on this new_function to put it in my array. If there is an objection to passing function pointers to functions then I make these function pointers a component of a structure. Can I then go through this array of function pointers (or structures containing function pointers) and call the functions pointed to even if they are not declared externally (to avoid further confusion all these functions have no parameters and they return void). What can I get away with staying within C, what can I get away with without breaking something? Jerry Freedman,Jr jfjr@mitre-bedford.ARPA Jerry Freedman, Jr "If at first you don't succeed, lower your standards" jfjr@mitre-bedford.arpa (617)271-6248 or 7555