comp.lang.ada
 help / color / mirror / Atom feed
From: Ken Garlington <garlingtonke@lfwc.lockheed.com>
Subject: Re: C Interface question
Date: 1996/07/11
Date: 1996-07-11T00:00:00+00:00	[thread overview]
Message-ID: <31E4B68B.52B5@lfwc.lockheed.com> (raw)
In-Reply-To: dewar.836955108@schonberg


Robert Dewar wrote:

> Dec has a pragma Import_Valued_Procedure that allows a function in the
> external world to be treated as a procedure with an initial out parameter
> that is the returned value on the Ada side. Using this pragma, we would
> have a third way of interfacing:
> 
>    procedure C_Function
>      (Return_Val : out int; Value : int; Result : in out int);
> 
>    pragma Import (C, C_Function);
>    pragma Import_Valued_Procedure
>      (Internal  => C_Function,
>       External  => "function",
>       Mechanism => (value, value, reference));
> 
> This pragma (and all other DEC Ada pragmas and attributes) will be fully
> implemented in the next version of GNAT (some of them only make sense on
> VMS, but many of them, like the above example, are generally useful).

Is there a paper available on which DEC Ada extensions will be implemented
"generally" in GNAT (beyond just the ports to DEC hardware)? There's probably
going to be quite a bit of software written with DEC Ada that will be ported
to non-DEC hardware over the next several years; if GNAT is a good way to
facilitate that migration, you might want to make that generally known...

-- 
LMTAS - "Our Brand Means Quality"




  parent reply	other threads:[~1996-07-11  0:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-07-09  0:00 C Interface question Jerry van Dijk
1996-07-09  0:00 ` Robert Dewar
1996-07-10  0:00   ` Theodore E. Dennison
1996-07-11  0:00     ` Robert Dewar
1996-07-11  0:00   ` Jerry van Dijk
1996-07-11  0:00   ` Ken Garlington [this message]
1996-07-11  0:00     ` Robert Dewar
1996-07-09  0:00 ` Laurent Guerby
1996-07-11  0:00   ` Jerry van Dijk
1996-07-16  0:00     ` David Kirkland
1996-07-11  0:00 ` Kevin Krieser
1996-07-11  0:00   ` 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