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=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a02:4f03:: with SMTP id c3mr11941195jab.13.1544487135911; Mon, 10 Dec 2018 16:12:15 -0800 (PST) X-Received: by 2002:a9d:6948:: with SMTP id p8mr306478oto.5.1544487135782; Mon, 10 Dec 2018 16:12:15 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.166.216.MISMATCH!q69no91110itb.0!news-out.google.com!v71ni115ita.0!nntp.google.com!q69no91109itb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 10 Dec 2018 16:12:15 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=98.118.241.43; posting-account=QF6XPQoAAABce2NyPxxDAaKdAkN6RgAf NNTP-Posting-Host: 98.118.241.43 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <53d7fc62-02e9-474d-8385-000930edbfad@googlegroups.com> Subject: Re: Ada version cheat sheet (2012 vs. 2005 vs. '95 ...) ? From: Jere Injection-Date: Tue, 11 Dec 2018 00:12:15 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:55009 Date: 2018-12-10T16:12:15-08:00 List-Id: On Monday, December 10, 2018 at 5:58:41 PM UTC-5, julian....@gmail.com wrote: > Howdy, > > For my personal development environments, Ada 2012 is totally fine, and > I know that some features I especially like require it ('with' pre/post > conditions, for some/all expressions), but it's come up that it might > benefit a project to be compileable by older compilers. For example, > CentOS 6 only offers an Ada 2005 package. > > Is there a cheat sheet of the form, "in place of this Ada 2012 > construct, you can use this Ada 2005 equivalent (or workaround)"? > > Ada 2012: > > function getrusage (Who : Integer; Report : access RUsage) return Integer > with Import => True, Convention => C, External_Name => "getrusage"; > > Ada 2005: > > function getrusage (Who : Integer; Report : access RUsage) return Integer; > pragma Import (C, getrusage, "getrusage"); > > Or is my best bet to use an older compiler (or flag like -gnat05, where > available), and then look in older versions of the ARM for what fails? > > Thanks. Here is the one that comes to mind. Haven't combed through it to verify everything: https://www.ada2012.org/comparison.html