comp.lang.ada
 help / color / mirror / Atom feed
* Universal type
@ 2007-08-03 18:28 shaunpatterson
  2007-08-03 18:31 ` shaunpatterson
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: shaunpatterson @ 2007-08-03 18:28 UTC (permalink / raw)


I'm looking to store different kinds of objects into a vector, queue,
etc

In Java, everything is derived from Object.  Is there something
similar
in Ada?  I'd like to be able to store Integers, booleans, etc, as
well
as custom defined objects.

I have implemented a simple linked list ung generics:

generic
        type ElementType is private;

Package GenericList is

type Node is Record
                Info : ElementType;
                Link : Position;
        end Record;




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

end of thread, other threads:[~2007-08-05 13:46 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-03 18:28 Universal type shaunpatterson
2007-08-03 18:31 ` shaunpatterson
2007-08-03 19:10   ` Dmitry A. Kazakov
2007-08-03 20:35     ` Maciej Sobczak
2007-08-03 21:54       ` shaunpatterson
2007-08-04  1:10         ` Jeffrey R. Carter
2007-08-04  7:21       ` Dmitry A. Kazakov
2007-08-03 23:03 ` Georg Bauhaus
2007-08-05 13:46 ` Martin Krischik

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