Article View: comp.std.c
Article #6224Re: Declaring objects of type `function' ??
From: Henry Spencer
Date: Wed, 21 Feb 1990 18:34
Date: Wed, 21 Feb 1990 18:34
13 lines
858 bytes
858 bytes
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
Technical Details
Message-ID:
<1990Feb21.183410.12822@utzoo.uucp>Path:
arc1-ca.pugleaf.net!utzoo!henryReferences:
<25E18E05.16004@paris.ics.uci.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c Path: arc1-ca.pugleaf.net!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