From: Jere <jhb.chat@gmail.com>
Subject: Re: Ada version cheat sheet (2012 vs. 2005 vs. '95 ...) ?
Date: Mon, 10 Dec 2018 16:12:15 -0800 (PST)
Date: 2018-12-10T16:12:15-08:00 [thread overview]
Message-ID: <53d7fc62-02e9-474d-8385-000930edbfad@googlegroups.com> (raw)
In-Reply-To: <b2b2a45c-8abe-4c05-9e58-578faa15fb63@googlegroups.com>
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
next prev parent reply other threads:[~2018-12-11 0:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-10 22:58 Ada version cheat sheet (2012 vs. 2005 vs. '95 ...) ? julian.fondren
2018-12-11 0:12 ` Jere [this message]
2018-12-11 22:16 ` Randy Brukardt
2018-12-12 20:41 ` mgr
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox