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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,14fb9d67ad36043,start X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!a70g2000hsh.googlegroups.com!not-for-mail From: pascal.malaise@gmail.com Newsgroups: comp.lang.ada Subject: Object.Operation and child package Date: Wed, 25 Jun 2008 10:41:08 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: 62.147.143.11 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1214415668 22480 127.0.0.1 (25 Jun 2008 17:41:08 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 25 Jun 2008 17:41:08 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: a70g2000hsh.googlegroups.com; posting-host=62.147.143.11; posting-account=uO_vzwoAAAAM7jhNZDkCkZpIghqP_5r8 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9) Gecko/2008061015 Firefox/3.0,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:880 Date: 2008-06-25T10:41:08-07:00 List-Id: Hi Ada05 experts, Is it normal to reject compilation of Object.Operation notation when operation is in a child package: package Pack is type Typ is tagged null record; procedure Proc1 (Var : in Typ); end Pack; package Pack.Sub is procedure Proc2 (Var : in Typ); end Pack.Sub; with Pack.Sub; procedure Proc is Obj : Pack.Typ; begin Obj.Proc1; Obj.Proc2; end Proc; The second call does not compile (with gnat): proc.adb:6:04: no selector "Proc2" for type "Typ" defined at pack.ads: 3