Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 beta 3/9/83; site frog.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!cybvax0!frog!john From: john@frog.UUCP (John Woods, Software) Newsgroups: net.sources.bugs Subject: Re: Call of non-function (?) Message-ID: <298@frog.UUCP> Date: Wed, 18-Dec-85 17:01:50 EST Article-I.D.: frog.298 Posted: Wed Dec 18 17:01:50 1985 Date-Received: Fri, 20-Dec-85 03:09:02 EST References: <1155@bbnccv.UUCP> Distribution: net Organization: Charles River Data Systems, Framingham MA Lines: 20 >While trying to compile some source code that I got over the net, my compiler >tripped over this line: > >cmd->c_func(args, arg1, arg2, got1, got2); > >In fact, at several points in the code, similar lines made the compiler throw >up. The error was 'call of non-function'. Change the line to read ( * cmd->c_func ) (args, arg1, arg2, got1, got2); Some compilers accept the shortcut (since its meaning is obvious), some don't. -- John Woods, Charles River Data Systems, Framingham MA, (617) 626-1101 ...!decvax!frog!john, ...!mit-eddie!jfw, jfw%mit-ccc@MIT-XX.ARPA Out of my way, I'm a scientist! War of the Worlds