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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,94d84e4971c0caee X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,CP1252 Path: g2news1.google.com!postnews.google.com!u26g2000yqm.googlegroups.com!not-for-mail From: =?ISO-8859-1?Q?Hibou57_=28Yannick_Duch=EAne=29?= Newsgroups: comp.lang.ada Subject: Re: Inheritance with Ada types Date: Tue, 9 Feb 2010 02:19:36 -0800 (PST) Organization: http://groups.google.com Message-ID: <1d6a685b-c07d-42fa-b8f4-02c74ac70169@u26g2000yqm.googlegroups.com> References: <92c90b37-0e9b-49f4-ab37-fbd256ed6f06@k41g2000yqm.googlegroups.com> NNTP-Posting-Host: 77.198.58.172 Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1265710776 868 127.0.0.1 (9 Feb 2010 10:19:36 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 9 Feb 2010 10:19:36 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: u26g2000yqm.googlegroups.com; posting-host=77.198.58.172; posting-account=vrfdLAoAAAAauX_3XwyXEwXCWN3A1l8D User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; fr),gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:9024 Date: 2010-02-09T02:19:36-08:00 List-Id: On 9 f=E9v, 10:11, Jean-Pierre Rosen wrote: > > clause... the use clause is particularly evil here. With package named Parent, containing a type named Parent, having a use clause on Parent brings into a context where the name Package can be both resolved as a package or as a type. The use clause is clearly involved here, as one the way to get ride of this error is to remove the use clause. The other way being to rename either the type either the package. May be I was wrong to say the use clause is particularly evil there : I should have said =93 the use clause is particularly vicious there =94 (due to its vicious side effect in such a kind of context).