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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4b06f8f15f01a568 X-Google-Attributes: gid103376,public From: dewarr@my-dejanews.com Subject: Re: Software landmines (was: Why C++ is successful) Date: 1998/09/07 Message-ID: <6t1b6o$ldk$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 388769839 References: <6rnhhe$e2u$1@nnrp1.dejanews.com> <6rsg0d$pcj@dfw-ixnews3.ix.netcom.com> <6s6v4i$mht@dfw-ixnews8.ix.netcom.com> <35F377B2.456C6374@sprintmail.com> <35F3FF42.D1E163E0@elca-matrix.ch> X-Http-Proxy: 1.0 x9.dejanews.com:80 (Squid/1.1.22) for client 209.73.133.253 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Mon Sep 07 19:12:24 1998 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/2.02 (OS/2; I) Date: 1998-09-07T00:00:00+00:00 List-Id: In article <35F3FF42.D1E163E0@elca-matrix.ch>, Mats.Weber@elca-matrix.ch wrote: > John G. Volan wrote: > > > > declare > > > A : Integer renames Get_A (10); > > > B : Float renames Get_B (X); > > > C : Boolean renames Get_C (Y); > > > begin > > > Op (A, B, C); > > > end; > > > > I'm curious: Does this have the same effect as the above, i.e., are the > > function calls forced into a sequential order? Or is their evaluation > > deferred until the aliases A, B, and C are actually used as parameters > > to the Op call, in which case the aliased function calls get executed in > > an undefined order? > > Yes, it has the same effect. Each function call is evaluated during the > elaboration of the renames it appears in. You are in fact renaming the object > that contains the function result. (See RM 3.3(10)). > I must say that I find the renaming of function calls like this to be a confusing oddity. It seems much clearer to me to use ordinary constant declarations. The two seem completely equivalent! -----== Posted via Deja News, The Leader in Internet Discussion ==----- http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum