From: John English <je@brighton.ac.uk>
Subject: Re: New, and don't understand the error message!
Date: Thu, 16 May 2002 11:58:41 +0100
Date: 2002-05-16T10:59:25+00:00 [thread overview]
Message-ID: <3CE390E1.5F9A4580@brighton.ac.uk> (raw)
In-Reply-To: 873cwtxnqv.fsf@CERT.Uni-Stuttgart.DE
Florian Weimer wrote:
>
> dannywooly@yahoo.co.uk (Danny Woolston) writes:
>
> > I am really new to ADA and im stuck on a coding cpmplier message, can
> > anyone shed some light on it?
>
> A tagged type must be declared at the library level.
Just to amplify: put the declaration of the data types needed for
your generic instantiation, together with the generic instantiation
itself, in a package specification:
package X is
type Y is ...;
package Z is new Linked_Lists(Y);
end X;
Now say "with X; use X;" at the start of your test program instead
of "with Linked_Lists".
-----------------------------------------------------------------
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
-----------------------------------------------------------------
next prev parent reply other threads:[~2002-05-16 10:58 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-15 18:34 New, and don't understand the error message! Danny Woolston
2002-05-15 18:35 ` Florian Weimer
2002-05-16 1:58 ` Steve Doiel
2002-05-16 2:47 ` Pat Rogers
2002-05-16 2:31 ` Robert Dewar
2002-05-16 6:17 ` Florian Weimer
2002-05-16 6:21 ` Florian Weimer
2002-05-16 2:42 ` Pat Rogers
2002-05-16 10:58 ` John English [this message]
2002-05-16 2:39 ` Pat Rogers
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox