comp.lang.ada
 help / color / mirror / Atom feed
From: Robert Dewar <robert_dewar@my-deja.com>
Subject: Re: Calling C's fopen from Ada (Aonix compiler)
Date: Tue, 19 Dec 2000 15:33:17 GMT
Date: 2000-12-19T15:33:17+00:00	[thread overview]
Message-ID: <91nv3t$uq4$1@nnrp1.deja.com> (raw)
In-Reply-To: slrn93u5jr.1ip.gerhard.nospam@lilith.hqd-internal.de

In article
<slrn93u5jr.1ip.gerhard.nospam@lilith.hqd-internal.de>,
  gerhard.nospam@bigfoot.de (Gerhard =?iso-8859-1?Q?H=E4ring?=)
wrote:
> I think the error is that you used Char_Array where
Interfaces.C.Chars_Ptr
> should be used. So the compiler passes the arguments to fopen
in by-value
> instead of by-reference mode.

This is possible, but would clearly violate the implementation
advice. If a compiler does violate the IA, it should tell you
that it does (see RM M(2)).


Sent via Deja.com
http://www.deja.com/



  reply	other threads:[~2000-12-19 15:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-12  1:15 Calling C's fopen from Ada (Aonix compiler) Wayne Magor
2000-12-12  3:06 ` Robert Dewar
2000-12-19  7:54 ` Gerhard Häring
2000-12-19 15:33   ` Robert Dewar [this message]
2000-12-19 18:18   ` David Botton
2000-12-20  0:31     ` Robert Dewar
replies disabled

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