Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!hao!hplabs!sri-unix!jeff@AIDS-UNIX.ARPA From: jeff@AIDS-UNIX.ARPA Newsgroups: net.unix-wizards Subject: Re: Function with variable number of args Message-ID: <1280@sri-arpa.UUCP> Date: Mon, 25-Jun-84 20:15:20 EDT Article-I.D.: sri-arpa.1280 Posted: Mon Jun 25 20:15:20 1984 Date-Received: Sat, 30-Jun-84 01:31:44 EDT Lines: 20 From: Jeff Dean (flame on) I disagree that with the idea that handling a "maximum number of arguments" is the same as handling a variable number of arguments. Sure, if you make the number large enough, people are unlikely to run into the limit, but that's not the point. You need a dynamic mechanism to handle a variable number of arguments; the "maximum number of arguments" is a static method, and insufficient. A variable argument mechanism needs to provide at least two things: to subroutine users, it allows an arbitrary number of arguments (subject to hardware constraints, such as stack size); to subroutine implementors, it means having a uniform mechanism for dealing with an unlimited number of arguments (and not having to guess at the maximum number of arguments any users are likely to throw at you). (flame off)