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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,fc95c1889fbed9e5 X-Google-Attributes: gid103376,public From: "Theodore E. Dennison" Subject: Re: C Interface question Date: 1996/07/10 Message-ID: <31E403CF.15FB7483@escmail.orl.mmc.com>#1/1 X-Deja-AN: 167653075 references: content-type: text/plain; charset=us-ascii organization: Lockheed Martin Information Systems mime-version: 1.0 newsgroups: comp.lang.ada x-mailer: Mozilla 2.0 (X11; I; SunOS 4.1.3_U1 sun4m) Date: 1996-07-10T00:00:00+00:00 List-Id: 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 ... > 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). Cool!! That was one of my favorite DECisms. The best part was the "mechanisims", field, which allowed "thin" bindings to use ADTs, rather than just integers or access types. That almost makes thin C bindings usable. -- T.E.D. | Work - mailto:dennison@escmail.orl.mmc.com | | Home - mailto:dennison@iag.net | | URL - http://www.iag.net/~dennison |