comp.lang.ada
 help / color / mirror / Atom feed
From: shaunpatterson@gmail.com
Subject: Universal type
Date: Fri, 03 Aug 2007 11:28:51 -0700
Date: 2007-08-03T11:28:51-07:00	[thread overview]
Message-ID: <1186165731.373877.257550@i13g2000prf.googlegroups.com> (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;




             reply	other threads:[~2007-08-03 18:28 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-03 18:28 shaunpatterson [this message]
2007-08-03 18:31 ` Universal type 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
replies disabled

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