Newsgroups: comp.std.c
Path: utzoo!henry
From: henry@utzoo.uucp (Henry Spencer)
Subject: Re: Declaring objects of type `function' ??
Message-ID: <1990Feb21.183410.12822@utzoo.uucp>
Organization: U of Toronto Zoology
References: <25E18E05.16004@paris.ics.uci.edu>
Date: Wed, 21 Feb 90 18:34:10 GMT

In article <25E18E05.16004@paris.ics.uci.edu> rfg@paris.ics.uci.edu (Ronald Guilmette) writes:
>Is this legal?
>	typedef int (function) ();
>	function global_function_object;	/* dubious */
>	int global_function_object ()
>	{

Check out 3.7.1 and the footnote thereto.  You can't inherit the
function-ness from a typedef in a function *definition*, but it's
legal in a declaration.
-- 
"The N in NFS stands for Not, |     Henry Spencer at U of Toronto Zoology
or Need, or perhaps Nightmare"| uunet!attcan!utzoo!henry henry@zoo.toronto.edu
