comp.lang.ada
 help / color / mirror / Atom feed
From: Richard Irvine <Richard.Irvine@eurocontrol.fr>
Subject: Re: Translate this into Ada ...
Date: 1996/08/21
Date: 1996-08-21T00:00:00+00:00	[thread overview]
Message-ID: <321AFC20.5586@eurocontrol.fr> (raw)
In-Reply-To: 4ved8g$att@Masala.CC.UH.EDU


Spasmo wrote:
> 
> Richard Irvine (Richard.Irvine@eurocontrol.fr) wrote:
> : Can anyone help with what I imagine is a frequently ocurring problem?
> 
> : We would like all lists in an application to be read using an iterator
> : with operations like:
> 
> [Snip]
> 
> Well I'm no expert in Ada, but I have successfully written
> generic linked list routines that pretty much do what you want.
> Here's some info, but if you would like the actual source code
> I'd be more than happy to provide it (I haven't done all that
> much debugging but it seems to work and at the very least should
> give you an idea of how to proceed).
> 

Thanks for your reply which concerned a particular implementation of 
a generic list. What I was really trying to get at was how to produce
an abstract specification of a list which MANY implementations (e.g.
singly-linked lists, arrays etc. ) might conform to. In our case
we are tyring to develop a subsystem which may be embedded in many
client applications (none of which is written in Ada!). 
The client applications will provide us with lists (collections)
and we have no idea how they will be implemented.
Nonetheless, we would like to have some way of ensuring that the
different lists provided by the client (and by ourselves) are 
accessed in a consistent way. The problems come because the 
function which creates the iterator refers to two asbtract types.
(Doubly dispatching).

For a concrete implementation one might make use of David Weller's 
Booch components, for example.




  reply	other threads:[~1996-08-21  0:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-08-21  0:00 Translate this into Ada Spasmo
1996-08-21  0:00 ` Richard Irvine [this message]
1996-08-28  0:00   ` Robert A Duff
  -- strict thread matches above, loose matches on Subject: below --
1996-08-20  0:00 Richard Irvine
1996-08-21  0:00 ` Norman H. Cohen
1996-08-22  0:00   ` Richard Irvine
1996-08-22  0:00     ` Richard Irvine
1996-08-22  0:00     ` Norman H. Cohen
1996-08-29  0:00   ` Robert A Duff
1996-08-21  0:00 ` David Weller
replies disabled

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