comp.lang.ada
 help / color / mirror / Atom feed
From: Wolfgang Jeltsch <jeltsch@my-deja.com>
Subject: Re: Containers with Ada
Date: 2000/11/20
Date: 2000-11-20T00:00:00+00:00	[thread overview]
Message-ID: <8vc7s5$48c$1@nnrp1.deja.com> (raw)
In-Reply-To: fOSR5.4515$6W1.400772@news.flash.net


> If List contains "thousands of elements", I suspect it's probably not
> an elementary type [Ada Reference Manual 3.2:3]. (It may _reference_
> them, but then only the reference is being passed, not the elements).
> Therefore, it doesn't have to be passed by copy [ARM 6.2:3], and most
> compilers won't.
I thought that every type which is not a by-reference type is a by copy
type. Thank you for the correction.

> Similar rules apply to the returned value.
As far as I can see from [ARM 6.5] a type must be limited to be a
return-by-reference type.

> It may be a good idea to declare List a limited type, but not for
> reasons of controlling the passing convention.
For what reasons it would be good?


Sent via Deja.com http://www.deja.com/
Before you buy.




  parent reply	other threads:[~2000-11-20  0:00 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-11-19  0:00 Containers with Ada jeltsch
2000-11-19  0:00 ` Robert Dewar
2000-11-20  4:37   ` Brian Rogoff
2000-11-20  0:00     ` Ted Dennison
2000-11-20  0:00       ` Brian Rogoff
2000-11-19  0:00 ` Ken Garlington
2000-11-20  0:00   ` Wolfgang Jeltsch
2000-11-20  0:00   ` Wolfgang Jeltsch [this message]
2000-11-19  0:00 ` Robert Dewar
2000-11-19  0:00 ` Robert Dewar
2000-11-20  0:00   ` Wolfgang Jeltsch
2000-11-19  0:00 ` Robert Dewar
2000-11-20  0:00 ` Marc A. Criley
2000-11-20  0:00   ` Wolfgang Jeltsch
2000-11-20  0:00   ` Brian Rogoff
2000-11-20  0:00     ` Stephen Leake
2000-11-20  0:00       ` Brian Rogoff
2000-11-21  0:00       ` Marc A. Criley
2000-11-21  0:00       ` Warren W. Gay VE3WWG
2000-11-21  0:00         ` Stephen Leake
2000-11-21  0:00           ` Warren W. Gay VE3WWG
2000-11-21  0:00             ` Stephen Leake
2000-11-22  0:00               ` Containers with Ada (distribution of) Warren W. Gay VE3WWG
     [not found]                 ` <004d01c0567b$cd4e49c0$b0375140@Fudge>
2000-11-25  0:00                   ` Does anyone use Anna? Lao Xiao Hai
2000-11-22  0:00               ` Containers with Ada Warren W. Gay VE3WWG
replies disabled

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