comp.lang.ada
 help / color / mirror / Atom feed
From: Stapler <spam.magnet@yahoo.com>
Subject: Re: parameter modes
Date: Thu, 26 Dec 2002 00:03:40 GMT
Date: 2002-12-26T00:03:40+00:00	[thread overview]
Message-ID: <wHrO9.459852$P31.154990@rwcrnsc53> (raw)
In-Reply-To: ZBoO9.304901$pN3.23457@sccrnsc03

On Wed, 25 Dec 2002 15:32:57 -0500, Jeffrey Creem wrote:


> 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.
 

Do you know if it's possible within the Ada language to define an optional
compiler instruction or pragma that says something like this ...

	if memory_region < X_number_of_bytes then

		Pass_by_copy(memory_region, Destination);

	else

		Pass_by_access_type(memory_region);

	end if;


Just curious.

Stapler



  reply	other threads:[~2002-12-26  0:03 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
2002-12-26  0:03   ` Stapler [this message]
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