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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ac02560f0af03a21 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-12-26 06:51:41 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!news-out.visi.com!petbe.visi.com!uunet!ash.uu.net!spool.news.uu.net!not-for-mail Date: Fri, 26 Dec 2003 09:51:40 -0500 From: Hyman Rosen User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031013 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: GNAT parameter passing, C-style? References: <3FEC43B2.5080606@noplace.com> In-Reply-To: <3FEC43B2.5080606@noplace.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Organization: KBC Financial Products Message-ID: <1072450300.440355@master.nyc.kbcfp.com> Cache-Post-Path: master.nyc.kbcfp.com!unknown@aphelion.nyc.kbcfp.com X-Cache: nntpcache 3.0.1 (see http://www.nntpcache.org/) NNTP-Posting-Host: 204.253.250.10 X-Trace: 1072450300 11548 204.253.250.10 Xref: archiver1.google.com comp.lang.ada:3812 Date: 2003-12-26T09:51:40-05:00 List-Id: Marin David Condic wrote: > What you refer to as "C-Style" and "Pascal-Style" is probably misleading > as well. In an older, simpler world, Pascal pushed its arguments left-to-right and the called routine popped the stack, while C pushed its arguments right-to- left and the calling routine popped the stack. The C way allows for easy handling of variable sized argument lists, and for the caller not to care how many arguments the called routine expects and for the called routine not to care how many arguments it was actually called with.