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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,69044da3235a8817 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-09-27 08:19:53 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out.visi.com!hermes.visi.com!uunet!ash.uu.net!lore.csc.com!baen1673807.!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: parameters evaluation Date: 27 Sep 2002 15:16:13 +0100 Organization: Alenia Marconi Systems, ISD, Farlington Sender: sjw@galadriel.frlngtn.gecm.com Message-ID: References: <3D947171.2040909@wanadoo.fr> NNTP-Posting-Host: 20.44.241.42 X-Trace: lore.csc.com 1033139990 21383 20.44.241.42 (27 Sep 2002 15:19:50 GMT) X-Complaints-To: abuse@news.csc.com NNTP-Posting-Date: Fri, 27 Sep 2002 15:19:50 +0000 (UTC) X-Newsreader: Gnus v5.5/Emacs 20.3 X-Original-NNTP-Posting-Host: galadriel.frlngtn.gecm.com X-Original-Trace: 27 Sep 2002 16:19:47 +0100, galadriel.frlngtn.gecm.com Xref: archiver1.google.com comp.lang.ada:29380 Date: 2002-09-27T15:16:13+01:00 List-Id: Sami Evangelista writes: > i have noticed a strange thing about expressions evaluations during a > procedure or function call. it appears that the parameters are evaluated > in the "wrong" order. Try this [...] > the output should "logically" be > F > G > H > > but it is > G > F > H I think you are wrong to say that your compiler is acting "wrong" or not "logically". See ARM 6.4(10) at http://www.adaic.org/standards/95lrm/html/RM-6-4.html - For the execution of a subprogram call, the name or prefix of the call is evaluated, and each parameter_association is evaluated (see 6.4.1). If a default_expression is used, an implicit parameter_association is assumed for this rule. These evaluations are done in an arbitrary order.