From: julian.fondren@gmail.com
Subject: Ada version cheat sheet (2012 vs. 2005 vs. '95 ...) ?
Date: Mon, 10 Dec 2018 14:58:39 -0800 (PST)
Date: 2018-12-10T14:58:39-08:00 [thread overview]
Message-ID: <b2b2a45c-8abe-4c05-9e58-578faa15fb63@googlegroups.com> (raw)
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.
next reply other threads:[~2018-12-10 22:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-10 22:58 julian.fondren [this message]
2018-12-11 0:12 ` Ada version cheat sheet (2012 vs. 2005 vs. '95 ...) ? Jere
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