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,6c7be346cfa17c37 X-Google-Attributes: gid103376,public From: Dale Stanbrough Subject: Re: Ada/Motif problem... Date: 1996/08/29 Message-ID: <5058l4$id5@goanna.cs.rmit.edu.au>#1/1 X-Deja-AN: 177318849 distribution: world references: <4vupg6$ljf@goanna.cs.rmit.edu.au> <01bb94d3$613fc4c0$328371a5@dhoossr.iquest.com> content-type: text/plain; charset=ISO-8859-1 x-xxmessage-id: organization: RMIT, Melbourne, Australia mime-version: 1.0 newsgroups: comp.lang.ada Date: 1996-08-29T00:00:00+00:00 List-Id: "Nah. The best idea is to start using Ada95 and use the _standard_ out of the box interoperability of Interfaces.C.Strings which does all this (and more)." Interfaces.C.Strings lets me create a copy of the Ada string, and pass a pointer to that copy. The callback can then make an Ada string from this copy. This all seems rather expensive, as well as only being by value. Is there any way to pass the string _by reference_ in a manner that is reasonably portable (even with the use of unchecked conversion). I'm really looking for a way of getting a pointer to the string somehow that is compatable with size of C pointers. Dale