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,69c50fc0d29ced1b X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!usenet-fr.net!gegeweb.org!aioe.org!not-for-mail From: =?iso-8859-15?Q?Yannick_Duch=EAne_=28Hibou57=29?= Newsgroups: comp.lang.ada Subject: Re: Q: SPARK visibility rules and inherit annotations. Date: Thu, 20 May 2010 17:58:24 +0200 Organization: Ada At Home Message-ID: References: <4bf3fce5$0$2399$4d3efbfe@news.sover.net> <568bb04d-6ad6-46da-9eb2-8d81c8c52b59@v18g2000vbc.googlegroups.com> <4bf45732$0$2407$4d3efbfe@news.sover.net> <85kj72Fhu9U1@mid.individual.net> NNTP-Posting-Host: QgHLs5XqnJEdNZrCkJ6IIg.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 User-Agent: Opera Mail/10.53 (Win32) Xref: g2news2.google.com comp.lang.ada:11807 Date: 2010-05-20T17:58:24+02:00 List-Id: Le Thu, 20 May 2010 13:03:01 +0200, Gavino a = =E9crit: >> While sometime, I would like to better understand some choices, like = the >> one I've meet, which is that it does not accept nested package >> specifications, or, more important, why it don't wants "type ... is n= ew >> ...;". If I could understand the rational behind this latter = >> restriction, >> this could perhaps help me to redesign. > > It's to avoid overloading, especially the implicit declaration of > user-defined subprograms. While this only occurs with tagged types, and SPARK 95 has support for = tagged type. Or may be I'm wrong somewhere, or else, I did not understoo= d = what you were to say. -- = There is even better than a pragma Assert: a SPARK --# check.