From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,16f6b0f03cbd9c3 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-16 04:11:33 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!server3.netnews.ja.net!newshost.central.susx.ac.uk!news.bton.ac.uk!not-for-mail From: John English Newsgroups: comp.lang.ada Subject: Re: New, and don't understand the error message! Date: Thu, 16 May 2002 11:58:41 +0100 Organization: University of Brighton Message-ID: <3CE390E1.5F9A4580@brighton.ac.uk> References: <873cwtxnqv.fsf@CERT.Uni-Stuttgart.DE> NNTP-Posting-Host: straumli.it.bton.ac.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: saturn.bton.ac.uk 1021546765 6899 193.62.183.204 (16 May 2002 10:59:25 GMT) X-Complaints-To: news@bton.ac.uk NNTP-Posting-Date: 16 May 2002 10:59:25 GMT X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) X-Accept-Language: en Xref: archiver1.google.com comp.lang.ada:24174 Date: 2002-05-16T10:59:25+00:00 List-Id: 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 -----------------------------------------------------------------