comp.lang.ada
 help / color / mirror / Atom feed
From: Ted Dennison <dennison@telepath.com>
Subject: Re: Generic type
Date: 2000/08/11
Date: 2000-08-11T00:00:00+00:00	[thread overview]
Message-ID: <8n14a1$lim$1@nnrp1.deja.com> (raw)
In-Reply-To: 87zomkgvgg.fsf@moon.mteege.de

In article <87zomkgvgg.fsf@moon.mteege.de>,
  Matthias Teege <matthias@mteege.de> wrote:
> generic
>
>    Rows : in Positive;       -- Length of table
>    type Info (<>) is private;
>
> package Table is
> ..
(new source file)
> type Argument;
> package Cline is
>    new Table (Kapazitaet => 10, Nutz_Info => Argument);
>
> wont work. ;-)

That's because Argument hasn't been fully defined. You'll have to move
the definition of "Cline" to after the full definition of "Argument" if
you want to use Argument as an actual.

Well...it could *also* be because you got the names of the formals wrong
in the declaration, but I'll assume that's a typo. :-)

--
T.E.D.

http://www.telepath.com/~dennison/Ted/TED.html


Sent via Deja.com http://www.deja.com/
Before you buy.




      reply	other threads:[~2000-08-11  0:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-08-11  0:00 Generic type Matthias Teege
2000-08-11  0:00 ` Ted Dennison [this message]
replies disabled

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