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,64a6ad02ec510120 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-11-02 08:11:51 PST Newsgroups: comp.lang.ada Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out.visi.com!hermes.visi.com!uunet!ash.uu.net!world!news From: Robert A Duff Subject: Re: Interfacing to C library... User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Sender: news@world.std.com (Mr Usenet Himself) Message-ID: Date: Sat, 2 Nov 2002 16:10:44 GMT Content-Type: text/plain; charset=us-ascii References: NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Organization: The World Public Access UNIX, Brookline, MA Xref: archiver1.google.com comp.lang.ada:30309 Date: 2002-11-02T16:10:44+00:00 List-Id: "Eric G. Miller" writes: > Seems Ada always passes records via C pointers. So, the above > doesn't work. Surely, there's a way! Or do I need a C wrapper for > my Ada wrapper ;-( This is a bug in the Ada 95 language, which, I must admit, is partly my fault. It has since been "fixed" by adding pragma C_Pass_By_Copy. See AI-131. This AI is approved by WG9, and is part of Corrigendum 1. Perhaps "fixed" is an overstatement. The bug has been patched with a kludgy pragma. - Bob