Mail Archives: djgpp/1997/07/31/09:54:32
At 08:44 30/07/97 -0700, Erik Max Francis wrote:
> int (*fp)(void);
>
> fp();
> (*fp)();
> (********************fp)();
>
>The latter call through a function pointer is, believe it or not,
>perfectly good ANSI C.
^^^^
I would rather agree if the wording was 'sintactically correct', 'cause
_good_ code should (at least in theory) generate a correct, preferable
eficient binary, but also be clear for humans to read and ease the
maintenance of the code.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Cesar Scarpini Rabak E-mail: csrabak AT ipt DOT br
DME/ASC Phone: 55-11-268-3522 Ext.350
IPT - Instituto de Pesquisas Tecnologicas Fax: 55-11-268-5996
Av. Prof. Almeida Prado, 532. Sao Paulo - SP 05508-901 BRAZIL
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Raw text -