comp.lang.ada
 help / color / mirror / Atom feed
* Re: Lists
       [not found] <003b01bf92ac$6c14dcc0$97c2f4d8@andrs>
@ 2000-03-22  0:00 ` John English
  2000-03-23  0:00   ` Lists Ehud Lamm
  2000-03-30  0:00 ` Multiprecisions numbers in ada DELCOURT J�r�me
  1 sibling, 1 reply; 4+ messages in thread
From: John English @ 2000-03-22  0:00 UTC (permalink / raw)


Fortier Andres wrote:
> Hi,
>     I need to make a package that contains a sort of heterogeneous list.
> This is the deal:
>                         There is a hierarchy of objects, and all of them are
> subclasses of Object. I need the list to be able to hold any object of that
> hierarchy, but the idea is not to have to instantiate a package for every
> type the list is going to hold.
> Any idea?

What you need is a list of pointers (whoops, access types :-) to
Object'Class objects. Or put a pointer to Object'Class in every
Object, and have operations to add an Object to a list, then
derive from Object as required. A list of pointers is easier
and more general IMHO.

-----------------------------------------------------------------
 John English              | mailto:je@brighton.ac.uk
 Senior Lecturer           | http://www.it.bton.ac.uk/staff/je
 Dept. of Computing        | ** NON-PROFIT CD FOR CS STUDENTS **
 University of Brighton    |    -- see http://burks.bton.ac.uk
-----------------------------------------------------------------




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Lists
  2000-03-22  0:00 ` Lists John English
@ 2000-03-23  0:00   ` Ehud Lamm
  0 siblings, 0 replies; 4+ messages in thread
From: Ehud Lamm @ 2000-03-23  0:00 UTC (permalink / raw)


|Fortier Andres wrote:
|> Hi,
|>     I need to make a package that contains a sort of heterogeneous list.
|> This is the deal:
|>                         There is a hierarchy of objects, and all of them are
|> subclasses of Object. I need the list to be able to hold any object of that
|> hierarchy, but the idea is not to have to instantiate a package for every
|> type the list is going to hold.
|> Any idea?
|

I think the "simple polymorphic list" example 9on my site, and on
adapower) shows how to do this.

Ehud Lamm mslamm@mscc.huji.ac.il
http://purl.oclc.org/NET/ehudlamm <== My home on the web 
Check it out and subscribe to the E-List- for interesting essays and more!







^ permalink raw reply	[flat|nested] 4+ messages in thread

* Multiprecisions numbers in ada
       [not found] <003b01bf92ac$6c14dcc0$97c2f4d8@andrs>
  2000-03-22  0:00 ` Lists John English
@ 2000-03-30  0:00 ` DELCOURT J�r�me
  2000-03-31  0:00   ` DELCOURT J�r�me
  1 sibling, 1 reply; 4+ messages in thread
From: DELCOURT J�r�me @ 2000-03-30  0:00 UTC (permalink / raw)
  To: comp.lang.ada

Hi!


I am Jerome Delcourt, and I have just created a site dedicated to
multiprecisions numbers in ada. There are some packages available at
http://www.chez.com/bignumber


Sincerely,


Jerome Delcourt








^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Multiprecisions numbers in ada
  2000-03-30  0:00 ` Multiprecisions numbers in ada DELCOURT J�r�me
@ 2000-03-31  0:00   ` DELCOURT J�r�me
  0 siblings, 0 replies; 4+ messages in thread
From: DELCOURT J�r�me @ 2000-03-31  0:00 UTC (permalink / raw)


DELCOURT J�r�me wrote:
> 
> Hi!
> 
> I am Jerome Delcourt, and I have just created a site dedicated to
> multiprecisions numbers in ada. There are some packages available at
> http://www.chez.com/bignumber
> 
> Sincerely,
> 
> Jerome Delcourt

If you have any problem to access to this site, there is a mirror
at http://www.crosswinds.net/~bignumbers/


Sincerely,


Jerome Delcourt




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2000-03-31  0:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <003b01bf92ac$6c14dcc0$97c2f4d8@andrs>
2000-03-22  0:00 ` Lists John English
2000-03-23  0:00   ` Lists Ehud Lamm
2000-03-30  0:00 ` Multiprecisions numbers in ada DELCOURT J�r�me
2000-03-31  0:00   ` DELCOURT J�r�me

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