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,3162283879cdc5f2 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,UTF8 X-Received: by 10.180.160.212 with SMTP id xm20mr5479106wib.0.1369279590803; Wed, 22 May 2013 20:26:30 -0700 (PDT) Path: fw11ni1150wic.0!nntp.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!193.141.40.65.MISMATCH!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news.panservice.it!aioe.org!.POSTED!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: Type vs subtype about visibility of parent's private full definition Date: Thu, 16 May 2013 22:28:30 +0200 Organization: Ada @ Home Message-ID: References: NNTP-Posting-Host: Sv6Cuze0X27eeIhEzO/D/A.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/12.15 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable Date: 2013-05-16T22:28:30+02:00 List-Id: Le Thu, 16 May 2013 22:25:12 +0200, Yannick Duch=C3=AAne (Hibou57) = a =C3=A9crit: > Le Thu, 16 May 2013 17:29:13 +0200, Simon Wright = a = > =C3=A9crit: >> if I write instead of Parent_Type and >> Instance_Type above >> >> type Instance_Type is >> new Parents.Instance_Type >> (Discriminant =3D> 2); >> >> or >> >> subtype Instance_Type is >> Parents.Instance_Type >> (Discriminant =3D> 2); >> >> it compiles OK. Sorry for the previous message, I missed you used `Parents.Instance_Type= ` = and will try this variant. Anyway, that still seems to be a bug, as the = = behaviour should be the same in both cases, using either = `Parents.Instance_Type` or a `Parent_Type` subtype. -- = =E2=80=9CSyntactic sugar causes cancer of the semi-colons.=E2=80=9D [1] =E2=80=9CStructured Programming supports the law of the excluded muddle.= =E2=80=9D [1] [1]: Epigrams on Programming =E2=80=94 Alan J. =E2=80=94 P. Yale Univers= ity