From: sk <noname@myob.com>
Subject: Re: Hiding a type
Date: Sat, 06 Jul 2002 17:49:24 -0500
Date: 2002-07-06T17:49:24-05:00 [thread overview]
Message-ID: <mailman.1025995921.29042.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: 3D2733F4.8010304@hotmail.com
Hi,
Not sure if this is what you are looking for, but
package Whatever is
type Something is private;
procedure Some_Procedure (Thing : Something);
private
type Internal_Something;
type Something is access Internal_Something;
end Whatever;
package body Whatever is
type Internal_Something is new Integer;
-- Whatever type you define
procedure Some_Procedure (Thing : Something) is
begin
null;
end Some_Procedure;
end Whatever;
The item of interest being the incomplete definition of
"Internal_Something" in the package specification.
--
-------------------------------------
-- Merge vertically for real address
-------------------------------------
s n p @ t . o
k i e k c c m
-------------------------------------
next prev parent reply other threads:[~2002-07-06 22:49 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-06 17:17 Hiding a type Ryan Tarpine
2002-07-06 21:30 ` Pat Rogers
2002-07-06 18:16 ` Ryan Tarpine
2002-07-06 22:49 ` sk [this message]
2002-07-06 22:52 ` Frank J. Lhota
2002-07-06 20:38 ` Ryan Tarpine
2002-07-07 10:31 ` Frank J. Lhota
2002-07-07 11:20 ` Simon Wright
2002-07-07 13:58 ` Frank J. Lhota
2002-07-07 22:24 ` Ryan Tarpine
2002-07-07 17:15 ` Jeffrey Carter
2002-07-07 17:58 ` Simon Wright
2002-07-06 23:10 ` chris.danx
2002-07-06 20:21 ` Ryan Tarpine
2002-07-07 1:58 ` Jeffrey Carter
2002-07-08 7:20 ` Preben Randhol
2002-07-06 23:12 ` chris.danx
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox