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.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,3e341f7795ed8bda X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.224.59.73 with SMTP id k9mr1399359qah.4.1343314644411; Thu, 26 Jul 2012 07:57:24 -0700 (PDT) Received: by 10.66.72.165 with SMTP id e5mr1621634pav.4.1343314555493; Thu, 26 Jul 2012 07:55:55 -0700 (PDT) Path: a15ni113198934qag.0!nntp.google.com!q21no2738553qas.0!news-out.google.com!b9ni61666166pbl.0!nntp.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!novia!news-peer1!btnet!zen.net.uk!hamilton.zen.co.uk!xlned.com!feeder5.xlned.com!feed.xsnews.nl!border-1.ams.xsnews.nl!newsfeed.straub-nv.de!news2.arglkargh.de!news.albasani.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Niklas Holsti Newsgroups: comp.lang.ada Subject: Re: pragma Convention() Ada2012 Date: Sat, 21 Jul 2012 23:09:10 +0300 Organization: Tidorum Ltd Message-ID: References: Mime-Version: 1.0 X-Trace: individual.net bXj/nQ00QBenHIiAomui0AkcBAaZvvbbGoksaDOYU5ScjaRG3PjaqwC86G2io/fbq6 Cancel-Lock: sha1:hMYwXqAwc3bqxgjvrkR5nRYIVdo= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 In-Reply-To: X-Received-Bytes: 2614 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Date: 2012-07-21T23:09:10+03:00 List-Id: On 12-07-21 22:16 , wlan.etho0@gmail.com wrote: > According to the New aspects section of: > http://en.wikibooks.org/wiki/Ada_Programming/Ada_2012#New_aspects > > "Convention (pragma now obsolescent)" > > I've tried researching it, but you know how hard it is to find good > information about obscure language features in ada. Actually I don't... what information have you tried to find? > I don't fully understand what this means, can someone explain it to > me? There is a "pragma Convention" that has been in Ada for some time, I think since Ada 95, http://www.adaic.org/resources/add_content/standards/95lrm/ARM_HTML/RM-B-1.html#I6047. The "aspect" system was added in Ada 2012, including the Convention aspect, http://www.ada-auth.org/standards/12rm/html/RM-B-1.html#I7339. The Convention aspect has the same effect as the Convention pragma, but it has the advantage that the entity to which the aspect applies is given by the position of the aspect specification, not by an identifier. This is better since it is easier both to write and to read and because it avoids the problem of overloaded names. Therefore the pragma is considered obsolescent, which simply means that you can still use it, but that the language designers think that there are better ways (the aspect) to do it. Does this answer you question, or is it that you don't understand what the Convention aspect (or pragma) does? -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .