From: user@domain.invalid
Subject: problems with generic package
Date: Wed, 29 May 2002 11:08:41 +0200
Date: 2002-05-29T09:09:42+00:00 [thread overview]
Message-ID: <3CF49A99.1050005@domain.invalid> (raw)
good morning
i have declared a generic package generic_set with the following
specification:
generic
type Element is private;
package Generic_Set is
...
end package;
then in another package i introduced a tagged type with two derived
types like this:
type node is tagged null record;
type place is new node with record ... end record;
type transition is new node with record ... end record;
how is it possible to declare a new package set over the node type?
this declaration doesn't work :
package nodes_set is new generic_set(element => node'class);
error:
instantiation error
unconstrained subtype in component declaration
actual for "Element" must be a definite subtype
thanks for any help
next reply other threads:[~2002-05-29 9:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-29 9:08 user [this message]
2002-05-29 11:21 ` problems with generic package Preben Randhol
2002-05-29 16:34 ` Stephen Leake
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox