comp.lang.ada
 help / color / mirror / Atom feed
From: Martin Krischik <krischik@users.sourceforge.net>
Subject: Re: "out" parameters
Date: Fri, 21 May 2004 11:28:43 +0200
Date: 2004-05-21T11:28:43+02:00	[thread overview]
Message-ID: <14098638.pGWFRt1ihv@linux1.krischik.com> (raw)
In-Reply-To: e26e273.0405201537.35ced9db@posting.google.com

Jo wrote:

> Does anyone happen to know whether an "out" parameter in Ada is being
> passed by-copy or by-reference?
> 
> If the parameter is a record with neither elementary nor access type
> component in it, then is it true that whether the "out" parameter is
> passed by-copy or by-reference is totally compiler dependent?

It is not compiler dependent. There are rules. Within the rules the compiler
will do what is best.

If you need to force him to use a specific calling convetion you can use
"pragma Convention" or "pragma Export" described in the chapter for
interfacing with other languages. But don't do it unless you have too or
for training.

With Regards

Martin

-- 
mailto://krischik@users.sourceforge.net
http://www.ada.krischik.com




  parent reply	other threads:[~2004-05-21  9:28 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-20 23:37 "out" parameters Jo
2004-05-20 23:53 ` Ludovic Brenta
2004-05-21  0:33   ` Georg Bauhaus
2004-05-21 19:17   ` Keith Thompson
2004-05-21 22:25     ` Vinzent 'Gadget' Hoefler
2004-05-22  8:20     ` Martin Krischik
2004-05-25 20:34     ` Robert I. Eachus
2004-05-21  1:09 ` Jeffrey Carter
2004-05-21  9:28 ` Martin Krischik [this message]
2004-05-28 23:14   ` Jo
2004-05-28 23:45     ` Marius Amado Alves
2004-05-29  1:45     ` Jeffrey Carter
2004-05-29  7:15     ` Martin Krischik
2004-06-04 21:59 ` Nick Roberts
2004-06-18  0:58   ` Jo
replies disabled

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