From: "Bob McChesney" <bob@teambob.freeserve.co.uk>
Subject: Trouble with renaming types
Date: Tue, 8 May 2001 16:37:45 +0100
Date: 2001-05-08T15:37:22+00:00 [thread overview]
Message-ID: <9d93ri$lhv$2@newsg3.svr.pol.co.uk> (raw)
Can anyone help me with this problem I have please?
I'm instantiating a generic package Set_Class from within another package. I
instantiate the package as WordSet, and this means a resulting type that I
need to use is WordSet.Set. However, I want to be able to reference this
type under another name from outside the package (I want to call it
Dictionary).
I think I'm supposed to just use a subtype order (subtype Dictionary is
WordSet.Set), however I'm keeping the instantiation of the package private,
which means I can't do this unless I put the subtype order after the
instantiation (which would place it inside the private area and it doesn't
like that).
So can anyone tell me a way of renaming a private type, inside a package?
That would be really good.
So far the only way it's worked is to take everything out of private but
this is not how I need it.
Any help would be much appreciated!
Thanks,
Bob
next reply other threads:[~2001-05-08 15:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-08 15:37 Bob McChesney [this message]
2001-05-08 15:45 ` Trouble with renaming types Bob McChesney
2001-05-08 16:45 ` Mark
2001-05-08 17:12 ` Bob McChesney
2001-05-09 13:18 ` Stephen Leake
2001-05-09 15:22 ` Bob McChesney
-- strict thread matches above, loose matches on Subject: below --
2001-05-09 4:59 Christoph Grein
2001-05-09 15:15 ` Bob McChesney
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox