anonymous functions

Peter da Silva peter at ficc.UUCP
Fri May 20 00:26:16 AEST 1988


In article <862 at xyzzy.UUCP>, throopw at xyzzy.UUCP writes:
>         signal( SIGINT, void (int sig){ interrupted = 1; } );

Of course if you went with this syntax instead of the typecast syntax, there's
no good reason to disallow:

	signal ( SIGINT, void (sig) int sig; { interrupted = 1; } );

After all, pre-ANSI declarations are still allowed.

I'd hate to have to write the compiler, though.
-- 
-- Peter da Silva, Ferranti International Controls Corporation.
-- Phone: 713-274-5180. Remote UUCP: uunet!nuchat!sugar!peter.



More information about the Comp.lang.c mailing list