Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site watdaisy.UUCP Path: utzoo!watmath!watdaisy!ndiamond From: ndiamond@watdaisy.UUCP (Norman Diamond) Newsgroups: net.lang.c Subject: Re: 4.2 C bugs? Message-ID: <7045@watdaisy.UUCP> Date: Fri, 8-Mar-85 12:20:47 EST Article-I.D.: watdaisy.7045 Posted: Fri Mar 8 12:20:47 1985 Date-Received: Sat, 9-Mar-85 07:35:37 EST References: <1700001@umn-cs.UUCP> <7032@watdaisy.UUCP> <8996@brl-tgr.ARPA> Organization: U of Waterloo, Ontario Lines: 24 > > f /* array of pointers */ cannot be initialized to functions. > > If you want to initialize pointers to pointers, try: > > void foo() {...} > > void blort() {...} > > void (*f[]) () = { > > &foo, > > &blort, > > 0 > > } > > WRONG, foo and blort are correctly the address of the function. > Your example cause the warning " & before array or function ignored." Yup, my mistake. I should have learned by now, not to believe manuals' rules on syntax and such things without trying them out first.... -- Norman Diamond UUCP: {decvax|utzoo|ihnp4|allegra}!watmath!watdaisy!ndiamond CSNET: ndiamond%watdaisy@waterloo.csnet ARPA: ndiamond%watdaisy%waterloo.csnet@csnet-relay.arpa "Opinions are those of the keyboard, and do not reflect on me or higher-ups."