Article View: comp.lang.misc
Article #4586Re: Check the Arg Count
From: barmar
Date: Sat, 17 Jan 1987 08:32
Date: Sat, 17 Jan 1987 08:32
16 lines
1318 bytes
1318 bytes
In article <1639@enea.UUCP> sommar@enea.UUCP (Erland Sommarskog) writes:
>To get I/O-routines (or whatever scanf() is) with variable parameter lists,
>there seems to be four ways:
>1) Make them standard routines recognized by the compiler. The best alter-
> native. Specially in a small langauge like C.
>2) Introduce a syntax that allows this. Possible, but not very attrcative.
>3) Skip checking of parameter count. To be straight: Ridiculous.
>4) Forget the whole thing.
#2 this is the approach taken in ANSI C. I sure hope it is possible,
and I guess C programmers should get used to the idea even if they don't
find it attractive.
--
Barry Margolin
ARPA: barmar@MIT-Multics
UUCP: ..!genrad!mit-eddie!barmar
Technical Details
Message-ID:
<4554@mit-eddie.MIT.EDU>Path:
arc1-ca.pugleaf.net!utzoo!watmath!clyde!rutgers!mit-eddie!barmarReferences:
<1634@enea.UUCP> <594@mcgill-vision.UUCP> <1639@enea.UUCP>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!rutgers!mit-eddie!barmar From: barmar@mit-eddie.UUCP Newsgroups: comp.lang.misc Subject: Re: Check the Arg Count Message-ID: <4554@mit-eddie.MIT.EDU> Date: Sat, 17-Jan-87 03:32:04 EST Article-I.D.: mit-eddi.4554 Posted: Sat Jan 17 03:32:04 1987 Date-Received: Sat, 17-Jan-87 16:08:59 EST References: <1634@enea.UUCP> <594@mcgill-vision.UUCP> <1639@enea.UUCP> Reply-To: barmar@eddie.MIT.EDU (Barry Margolin Organization: MIT, EE/CS Computer Facilities, Cambridge, MA Lines: 16