From: S.J.Sangwine@Reading.ac.uk (Dr Steve Sangwine)
Subject: Re: Interfacing to C non-void procedure with "out" parameters
Date: 2000/01/18
Date: 2000-01-18T00:00:00+00:00 [thread overview]
Message-ID: <388463bb.11636202@news.rdg.ac.uk> (raw)
In-Reply-To: jTHg4.2072$4R4.102692@newsread1.prod.itd.earthlink.net
On Mon, 17 Jan 2000 16:58:55 GMT, "Matthew Heaney"
<matthew_heaney@acm.org> wrote:
>In neither Ada nor C can you directly modify a function parameter. In
>both languages you have to pass a pointer to the data, and modify the
>data designated by the pointer.
>You are free to modify a parameter on the C side that Ada thinks is in,
>just as can with a C caller. However, these changes are not propagated
>back to the Ada client, nor to a C client.
Thanks for this, and to Ted Dennison for his comments. This has
clarified the position greatly.
Dr Steve Sangwine
Division of Electronic Engineering
The University of Reading, UK
http://www.elec.rdg.ac.uk/sjs.html
prev parent reply other threads:[~2000-01-18 0:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-01-14 0:00 Interfacing to C non-void procedure with "out" parameters Dr Steve Sangwine
2000-01-14 0:00 ` Alain Le Guennec
2000-01-14 0:00 ` Ted Dennison
2000-01-14 0:00 ` Jeff Carter
2000-01-14 0:00 ` Ted Dennison
2000-01-15 0:00 ` Jeff Carter
2000-01-17 0:00 ` Matthew Heaney
2000-01-18 0:00 ` Dr Steve Sangwine [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