From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,b98c6267042b1e47 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Mon, 26 Nov 2007 10:51:12 -0600 From: "Steve" Newsgroups: comp.lang.ada References: <9e4ce016-d6ab-49de-b6f7-e46c59e047b1@t47g2000hsc.googlegroups.com> Subject: Re: Variable list parameters Date: Mon, 26 Nov 2007 08:52:12 -0800 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-RFC2646: Format=Flowed; Original Message-ID: X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 24.20.111.206 X-Trace: sv3-LZl04utm7hQCxGCqE/fdzfwfSOGuH4O8oOTrug4Qn1sMu54agD2Gp/Fyko6H5UO7zwkLRqs7hS/aq0i!CnoCN670z7BdU117cJ9ReiOHPHi8dZdyAYOnosSE0YSE/OTMa8klRF87p1ypLTCMG9p6szrRSJDx!i2He3iDN7Q29eBmgKBsodVQfg1mfMw== X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.35 Xref: g2news1.google.com comp.lang.ada:18633 Date: 2007-11-26T08:52:12-08:00 List-Id: wrote in message news:9e4ce016-d6ab-49de-b6f7-e46c59e047b1@t47g2000hsc.googlegroups.com... > Does Ada have variable length parameter lists? > > i.e void printf (char *, ...) No. You can achieve similar results by making a variable length array and passing the array as an parameter: type arg_array is array( Positive range <> ) of integer; procedure process_args( args : arg_array ) is begin null; end process_args; ... process_args( ( 1, 2, 3 ) ); If you need to have different argument types you can either make the elements of the array tagged or variant types. Regards, Steve (The Duck) > > Thanks