Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site fluke.UUCP Path: utzoo!linus!decvax!microsoft!fluke!bhaskar From: bhaskar@fluke.UUCP (K.S. Bhaskar) Newsgroups: net.lang Subject: Re: Ada (TM) vs C Message-ID: <772@vax2.fluke.UUCP> Date: Thu, 20-Oct-83 17:00:57 EDT Article-I.D.: vax2.772 Posted: Thu Oct 20 17:00:57 1983 Date-Received: Sat, 22-Oct-83 01:14:11 EDT References: <452@cbosgd.UUCP> Organization: John Fluke Mfg. Co., Everett, Wash Lines: 10 As a follow-up comment to Mark Horton's, I think that the issue of calling a procedure for each variable (as opposed to a single call to something like printf) is one of purity vs. expediency. However, one language I know of steers an in-between course as follows: a function can be declared as f(a,b,c) where c can be declared a repeatable parameter. Then, a call like f(p,q,r,s,t) is (almost) equivalent to f(p,q,r); f(p,q,s); f(p,q,t) -- the difference is that p and q are evaluated just once (which makes the almost equivalence even better than full equivalence). This language is Mainsail. {allegra,lbl-csam,microsoft,sb1,uw-beaver}!fluke!bhaskar