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.1 required=5.0 tests=BAYES_00, PP_MIME_FAKE_ASCII_TEXT autolearn=no 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!news3.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Gavino" Newsgroups: comp.lang.ada Subject: Re: Q: SPARK visibility rules and inherit annotations. Date: Fri, 21 May 2010 12:42:53 +0200 Message-ID: <85n6d9F9v4U1@mid.individual.net> 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> X-Trace: individual.net hcNBxLSLnuR8+QINx/04lAuotwDsbrGy3X9E8nUKgylgJWgSYm Cancel-Lock: sha1:2b/vhpQsV/vpeDIbEThX9aJ6uec= X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Xref: g2news2.google.com comp.lang.ada:11842 Date: 2010-05-21T12:42:53+02:00 List-Id: "Yannick Duch�ne (Hibou57)" wrote in message news:op.vc0hbmfnxmjfy8@garhos... >Le Thu, 20 May 2010 13:03:01 +0200, Gavino a �crit: >> 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 understood >what you were to say. Firstly, derived types can introduce overloaded enumeration literals, which SPARK prohibits. Secondly, if the parent type is one declared immediately within the visible part of a package, then certain subprograms declared there are implicitly declared for the derived type, again a form of overloading.