indirect reference/use of procedures

Peter da Silva peter at ficc.uu.net
Fri Mar 16 04:01:08 AEST 1990


> void (* myfunc)();

> myfunc ();

I realise this is a valid syntax as of X3J11 (or whatever it is now that
it's complete), but it's confusing. If nothing else, it breaks the symmetry
between usage and declaration. C declaration syntax is confusing enough
as it is, and declarations of pointers to functions particularly so. It's
better to blow the extra three characters and call "(* myfunc) ();".

What did the committee have in mind when they decided to make this syntax
part of the standard?
-- 
 _--_|\  `-_-' Peter da Silva. +1 713 274 5180. <peter at ficc.uu.net>.
/      \  'U`
\_.--._/
      v



More information about the Comp.lang.c mailing list