'void' arguments (Yet Another Feature Proposal)
Christopher R Volpe
volpe at camelback.crd.ge.com
Wed Jan 23 04:42:37 AEST 1991
In article <943 at tuura.UUCP>, risto at tuura.UUCP (Risto Lankinen) writes:
|>
|> SetThisMode( int iMode,int iValue1,int iValue2,int iValue3 );
|>
|>also suppose the documentation says that 'when iMode==<xyz>, then none of
|>the iValue:s have any effect'. In code you'd then write:
|>
|> SetThisMode( <xyz>,0,0,0 ); or SetThisMode( <xyz>,<your-age-in-days>,
|> <temperature-in-Kelvins>,<number-of-emptied-Coke-cans-this-week> );
|>
|>when you could be doing...
|>
|> SetThisMode( <xyz>,(int)any,(int)any,(int)any );
|>
How about making it a variable argument list function and calling
it with
SetThisMode(<xyz>);
or
SetThisMode(<abc>,i,j,k);
???
|>
|>Terveisin: Risto Lankinen
|>--
|>Risto Lankinen / product specialist ***************************************
|>Nokia Data Systems, Technology Dept * 2 2 *
|>THIS SPACE INTENTIONALLY LEFT BLANK * 2 -1 is PRIME! Now working on 2 +1 *
|>replies: risto at yj.data.nokia.fi ***************************************
==================
Chris Volpe
G.E. Corporate R&D
volpecr at crd.ge.com
More information about the Comp.lang.c
mailing list