From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,dd182ceb611c674a,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-29 10:13:48 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!isdnet!enst!enst.fr!not-for-mail From: ANH_VO@udlp.com Newsgroups: comp.lang.ada Subject: Limited Type Access Date: Mon, 29 Oct 2001 10:08:34 -0600 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1004379227 56230 137.194.161.2 (29 Oct 2001 18:13:47 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Mon, 29 Oct 2001 18:13:47 +0000 (UTC) To: comp.lang.ada@ada.eu.org Return-Path: Content-Description: cc:Mail note part Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , List-Archive: Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:15364 Date: 2001-10-29T10:08:34-06:00 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;