comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: what to use in place of old gnatbl in newer GNAT ?
Date: Thu, 05 Jul 2012 12:41:49 +0100
Date: 2012-07-05T12:41:49+01:00	[thread overview]
Message-ID: <m2mx3ewi2q.fsf@pushface.org> (raw)
In-Reply-To: m2r4sqwkl6.fsf@pushface.org

Simon Wright <simon@pushface.org> writes:

> However, neither seems to work!

> I get
>
> $ ./cxbi 
> Integer number passing:
> mode: in out in/out
> Ada send:
>           1          1          1
>  Fortran get:
>            1           1           1
>  Fortran send:
>            2           2           2
> Ada recieve:
>           1          2          2
> Ada send:
>          -1         -1         -1
>  Fortran get:
>           -1          -1          -1
>  Fortran send:
>            0           0           0
> Ada recieve:
>          -1          0          0

Actually, aside from the spelling, this is correct; the first number is
passed by Ada as mode in, so the fact that the Fortran changes it has no
effect on the value seen by Ada after the call.



  parent reply	other threads:[~2012-07-05 11:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-05  0:44 what to use in place of old gnatbl in newer GNAT ? Nasser M. Abbasi
2012-07-05  8:38 ` Simon Wright
2012-07-05 10:47 ` Simon Wright
2012-07-05 11:39   ` Nasser M. Abbasi
2012-07-05 11:41   ` Simon Wright [this message]
2012-07-05 12:02     ` Nasser M. Abbasi
replies disabled

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