From: ANH_VO@udlp.com
To: comp.lang.ada@ada.eu.org
Subject: Limited Type Access
Date: Mon, 29 Oct 2001 10:08:34 -0600
Date: 2001-10-29T10:08:34-06:00 [thread overview]
Message-ID: <mailman.1004379225.31568.comp.lang.ada@ada.eu.org> (raw)
Greeting,
I could not figure out why the codes below compiled without any error. My
thought was that access type of a limited type is considered limited. Therefore,
Object type must be limited because its component is limited. What did I miss?
Thanks for your help.
Anh Vo
package Limited_Access is
protected type Counting ( Start_Count : Positive := 1) is
entry Secure;
procedure Release;
private
Current_Count : Natural := Start_Count;
end Counting;
subtype Binary is Counting (Start_Count => 1);
type Binary_Access is access all Binary;
type Object is
record
Sem : Binary_Access;
end record;
end Limited_Access;
next reply other threads:[~2001-10-29 16:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-29 16:08 ANH_VO [this message]
2001-10-29 18:19 ` Limited Type Access Mark Lundquist
2001-10-29 19:16 ` Matthew Heaney
-- strict thread matches above, loose matches on Subject: below --
2001-10-29 18:27 Beard, Frank
2001-10-29 23:59 ` Mark Lundquist
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox