www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/31/09:54:32

Message-Id: <1.5.4.32.19970731135539.006a59f0@dce03.ipt.br>
Mime-Version: 1.0
Date: Thu, 31 Jul 1997 10:55:39 -0300
To: Erik Max Francis <max AT alcyone DOT com>, djgpp AT delorie DOT com
From: Cesar Scarpini Rabak <csrabak AT dce03 DOT ipt DOT br>
Subject: Re: Function pointers (was ...)

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019