comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey Creem" <jeff@thecreems.com>
Subject: Re: parameter modes
Date: Wed, 25 Dec 2002 20:32:57 GMT
Date: 2002-12-25T20:32:57+00:00	[thread overview]
Message-ID: <ZBoO9.304901$pN3.23457@sccrnsc03> (raw)
In-Reply-To: 3e09fd53.18465812@news.freenet.de


"Jan" <dontwantspam@abc.com> wrote in message
news:3e09fd53.18465812@news.freenet.de...
> 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.
>


If you are just worried about run time efficiency then just don't worry
about it. The compiler (any decent compiler (or even some bad ones I have
used)) do the "right" thing with repect to making a copy or not.

The in, out, in out is not like the old pascal "var" mode.

If you really do need to force something specific on a case base case basis
(for some reason other than efficiency) then probably something like access
might be appropriate.





  reply	other threads:[~2002-12-25 20:32 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-25 19:18 parameter modes Jan
2002-12-25 20:32 ` Jeffrey Creem [this message]
2002-12-26  0:03   ` Stapler
2002-12-26  0:09     ` Larry Kilgallen
     [not found] ` <d0adua.hs3.ln@beastie.ix.netcom.com>
2002-12-26 15:10   ` Jan
  -- strict thread matches above, loose matches on Subject: below --
1988-11-15 13:05 Parameter modes Dale Gaumer
1988-11-18 14:06 ` Robert Firth
1988-11-21 23:46 ` Michael Murphy
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox