Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: 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 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