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, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a369e9bb4bee1413 X-Google-Attributes: gid103376,public From: Ted Dennison Subject: Re: Are unconstrained arrays passed by references? Date: 1999/08/10 Message-ID: <7opdoc$d70$1@nnrp1.deja.com>#1/1 X-Deja-AN: 511049621 References: <7oomct$t93$1@nnrp1.deja.com> <7opbch$bca$1@nnrp1.deja.com> X-Http-Proxy: 1.0 x43.deja.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja.com - Share what you know. Learn what you don't. X-Article-Creation-Date: Tue Aug 10 14:42:24 1999 GMT X-MyDeja-Info: XMYDJUIDtedennison Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.6 [en] (WinNT; I) Date: 1999-08-10T00:00:00+00:00 List-Id: In article <7opbch$bca$1@nnrp1.deja.com>, bourguet@my-deja.com wrote: > Is there a way to guarantee a pass by reference for a given type? > (I seem to recall that in the spitbol package ACT use pragma > volatile to this effect) And for a subtype? (So one can use this > way to create a subtype of string, making this function savier) Well, you could pass a pointer to the object. In Ada83 that was the only portable way. In Ada(95) there is now the "access" parameter mode. Also, the LRM now defines several situations in which a specific mechanism *must* be used, depending on the type of the object being passed. -- T.E.D. Sent via Deja.com http://www.deja.com/ Share what you know. Learn what you don't.