From: tmoran@acm.org
Subject: Re: calling an ada procedure from C++
Date: Mon, 17 Nov 2003 07:37:18 GMT
Date: 2003-11-17T07:37:18+00:00 [thread overview]
Message-ID: <OU_tb.171590$9E1.885146@attbi_s52> (raw)
In-Reply-To: 3fb24ce4$1@baen1673807.greenlnk.net
> --type Record_Ptr is access Record_T;
> ...
> function Struct return Record_T is
> A_Record : Record_T :=(2,4);
> begin
> return A_Record;
> end Struct;
Why do you have the Record_Ptr declaration commented out? Did you try
returning a pointer, instead of a record, but it still didn't work? How
about
procedure Struct(Result : out Record_T) is
A_Record : Record_T :=(2,4);
begin
Result := A_Record;
end Struct;
so you are doing things C-style by passing a pointer parameter.
next prev parent reply other threads:[~2003-11-17 7:37 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-12 15:11 calling an ada procedure from C++ Anthony Moss
2003-11-17 4:04 ` red floyd
2003-11-17 7:37 ` tmoran [this message]
2003-11-17 10:38 ` Duncan Sands
2003-11-17 14:32 ` Hyman Rosen
2003-11-17 18:28 ` Frank J. Lhota
2003-11-18 0:03 ` Ludovic Brenta
2003-11-18 0:32 ` Frank J. Lhota
2003-11-22 5:25 ` Dave Thompson
2003-11-17 21:13 ` sk
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox