From: Matthias Teege <matthias@mteege.de>
Subject: Generic type
Date: 2000/08/11
Date: 2000-08-11T00:00:00+00:00 [thread overview]
Message-ID: <87zomkgvgg.fsf@moon.mteege.de> (raw)
Moin,
I've wrote an generic packages to store things in an
table. The generic looks like this:
generic
Rows : in Positive; -- Length of table
type Info (<>) is private;
package Table is
type Tabelle is limited private;
subtype Id is Positive range 1 .. Rows;
..
I made a new instance with this statement:
package Cline is
new Table (Kapazitaet => 10, Nutz_Info =>
String);
wich works great. But how can I use my own types?
type Argument;
package Cline is
new Table (Kapazitaet => 10, Nutz_Info => Argument);
wont work. ;-)
Many thanks
Matthias
--
Matthias Teege -- matthias@mteege.de -- http://emugs.de
make world not war
PGP-Key auf Anfrage
next 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 Matthias Teege [this message]
2000-08-11 0:00 ` Generic type Ted Dennison
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox