comp.lang.ada
 help / color / mirror / Atom feed
From: Hadrien Grasland <hadrien.grasland@gmail.com>
Subject: Re: How do typical Ada calling conventions work ?
Date: Wed, 26 Aug 2015 08:53:14 -0700 (PDT)
Date: 2015-08-26T08:53:14-07:00	[thread overview]
Message-ID: <13447414-b7b7-4d9d-9fcc-35928eb42a5e@googlegroups.com> (raw)
In-Reply-To: <f6787a98-9f43-4e7b-bfbc-5c92a2b17018@googlegroups.com>

@Per : Actually, I already use this extended return syntax quite liberally in my code, mostly because I like its aesthetics better than the declare..begin..end equivalent : it is more concise, and simultaneously clarifies that the variable being declared will ultimately hold the function's result... :-)


Le mardi 25 août 2015 20:38:06 UTC+2, gautier...@hotmail.com a écrit :
> Le vendredi 21 août 2015 10:37:24 UTC+2, Hadrien Grasland a écrit :
> > I am currently having fun re-implementing some of Numerical Recipes' code snippets in Ada.
> 
> Just a side note: you can automatically translate the full Pascal version of the Numerical Recipes with P2Ada: http://p2ada.sf.net/ . The translated code needs some rework, but it might save you some work in the end.
> _________________________
> Gautier's Ada programming
> http://sf.net/users/gdemont/

Unfortunately, I'm using the 3rd edition of the Numerical Recipes book, which is C++-only. Also, I only have access to the book, not the code archive.

Besides, something which I may not have made clear enough is that this is mostly a personal exercise to work a bit on my Ada skills, not a project which I need to finish quickly for work or anything like that. So in this context, it makes more sense for me to carefully walk through the code, examine ways I could re-write it to use more idiomatic Ada constructs, have some fun with Ada 2012 contracts, and overall take my time.


      reply	other threads:[~2015-08-26 15:53 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-21  8:37 How do typical Ada calling conventions work ? Hadrien Grasland
2015-08-21 10:41 ` Markus Schöpflin
2015-08-21 12:47   ` Niklas Holsti
2015-08-22  8:31     ` Hadrien Grasland
2015-08-24 22:03       ` Randy Brukardt
2015-08-25  5:32         ` Per Sandberg
2015-08-25  7:05           ` AdaMagica
2015-08-25  7:28             ` AdaMagica
2015-08-31 23:01           ` Randy Brukardt
2015-08-25 18:38 ` gautier_niouzes
2015-08-26 15:53   ` Hadrien Grasland [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox