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,5bfab93693a9feee,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-12-25 11:20:51 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.vmunix.org!feed.news.nacamar.de!newsfeed.freenet.de!news.freenet.de!not-for-mail From: dontwantspam@abc.com (Jan) Newsgroups: comp.lang.ada Subject: parameter modes Date: Wed, 25 Dec 2002 19:18:59 GMT Message-ID: <3e09fd53.18465812@news.freenet.de> X-Newsreader: Forte Free Agent 1.21/32.243 NNTP-Posting-Host: 213.7.194.126 X-Trace: 1040844015 news.freenet.de 10615 213.7.194.126:1046 X-Complaints-To: abuse@freenet.de Xref: archiver1.google.com comp.lang.ada:32305 Date: 2002-12-25T19:18:59+00:00 List-Id: Hello. Yet another question/problem: I know how "in", "out", and "in out" works, so this is not the problem, but I need to know what exactly happens in memory. I need to pass a large array, so I need a parameter mode, which doesn't make a copy of it. This is what I found out (there is not much about it in the LRM, or maybe I haven't found the right paragraph): OUT : a 2nd variable of same type is made, containing undefined values. When procedure ends, this new variable is copied to the original one (and then the new one is probably removed from memory). So now the question: what happens when using "IN" and "IN OUT"? I can only guess, so I would be grateful when somebody (who really knows what's behind it) could explain it to me. BTW: I know that there can be also "ACCESS" (as a parameter mode), could someone give an example? Maybe that's what I'm looking for (when I want to pass an array). Jan --- eMail: janp9 @ gmx.net