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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8ebde0e81efb7e79 X-Google-Attributes: gid103376,public From: kilgallen@eisner.decus.org (Larry Kilgallen) Subject: Re: Importing a Unix function call Date: 1998/12/04 Message-ID: <1998Dec4.154225.1@eisner>#1/1 X-Deja-AN: 418734089 X-Nntp-Posting-Host: eisner.decus.org References: <36683FA3.2512DECF@ndirect.co.uk> X-Trace: news.decus.org 912804148 23417 KILGALLEN [192.67.173.2] Organization: LJK Software Reply-To: Kilgallen@eisner.decus.org.nospam Newsgroups: comp.lang.ada Date: 1998-12-04T00:00:00+00:00 List-Id: In article <36683FA3.2512DECF@ndirect.co.uk>, Steve Crowe writes: > Using Ada to import a function is easy, but if the function parameter > returns > a value, how is the Ada error overcome. As I want the return value as > well > as the out parameter. Is there away round this using a pragma? Use IMPORT_VALUED_PROCEDURE in Gnat or DEC Ada. Your purpose is exactly why it exists. Larry Kilgallen