'void' arguments (Yet Another Feature Proposal)

Doug Gwyn gwyn at smoke.brl.mil
Thu Jan 24 09:52:14 AEST 1991


In article <15955 at crdgw1.crd.ge.com> volpe at camelback.crd.ge.com (Christopher R Volpe) writes:
>How about making it a variable argument list function and calling
>it with 
>           SetThisMode(<xyz>);
>or
>           SetThisMode(<abc>,i,j,k);

That is certainly a cleaner approach, and is supported by the current C
standard.  The one possible drawback is that in some implementations use
of a variable-argument function can result in less efficient function
linkage.  (Also, the definition of SetThisMode() becomes more tedious.)
I don't think those drawbacks are too severe, though.  Certainly there
is very little to be gained by introducing another keyword just to
facilitate slightly more efficient linkage in such an uncommon situation.



More information about the Comp.lang.c mailing list