Pointers to functions

Kai Henningsen Kai_Henningsen at ms.maus.de
Mon May 20 07:33:00 AEST 1991


D P Gilbert dpg%extro.ucc.su.OZ.AU @ SUB schrieb am Fr 17.05.1991, 02:18

DP>As I reach for the shift button to put yet another set of left and
DP>right parentheses after a niladic function call I have begun to
DP>wonder how to relieve such tedium. Wouldn't it be nice just to
DP>write the function name without those parentheses (e.g. token.get
DP>instead of token.get() ). The syntax of C tells me why but could it
DP>be bent with a #pragma perhaps? Whenever I want the address of a
DP>function I use "&" so I can understand my code 18 months later.
DP>
DP>I know this amounts to heresy ... apologies in advance

Well, *I* call this common sense ... :-)
--
Kai Henningsen  Internet: kh at ms.maus.de
Muenster         UUCP: any_backbone_that_knows_domains!ms.maus.de!kh
Germany         Fido: kh%maus ms, 2:242/2.6 or Kai Henningsen, 2:242/2.244



More information about the Comp.lang.c mailing list