From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9245b8db9abd376c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-04-16 06:38:08 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dennison@telepath.com (Ted Dennison) Newsgroups: comp.lang.ada Subject: Re: Out parameters in a function Date: 16 Apr 2002 06:38:07 -0700 Organization: http://groups.google.com/ Message-ID: <4519e058.0204160538.74e9ac37@posting.google.com> References: NNTP-Posting-Host: 65.115.221.98 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1018964288 20844 127.0.0.1 (16 Apr 2002 13:38:08 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 16 Apr 2002 13:38:08 GMT Xref: archiver1.google.com comp.lang.ada:22599 Date: 2002-04-16T13:38:08+00:00 List-Id: Stephen Leake wrote in message news:... > If you are trying to import a C function that has this profile, you > need to use the non-standard GNAT pragma Import_Valued_Procedure; see > the GNAT user's guide. First off, you don't know that he's using Gnat. Secondly, I'd advise *against* using that pragma unless you know for a fact that you'll never want to use the code with another compiler. Instead, you should just use an access value (or System.Address). That may seem annoying and ugly, but its exactly what the C coders who use that routine will be doing. Its a C interface; there's no sense in polishing a turd. -- T.E.D. Home - mailto:dennison@telepath.com (Yahoo: Ted_Dennison) Homepage - http://www.telepath.com/dennison/Ted/TED.html