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-Thread: 103376,47957cb8c33729e5 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread1.news.pas.earthlink.net.POSTED!a6202946!not-for-mail From: Jeffrey Carter Organization: jrcarter commercial-at acm [period | full stop] org User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Thick Ada bindings to C Win32 References: <2vjnfbF2lioiaU1@uni-berlin.de> <1Ucld.25101$KJ6.2286@newsread1.news.pas.earthlink.net> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Sun, 28 Nov 2004 18:57:58 GMT NNTP-Posting-Host: 63.184.16.1 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.news.pas.earthlink.net 1101668278 63.184.16.1 (Sun, 28 Nov 2004 10:57:58 PST) NNTP-Posting-Date: Sun, 28 Nov 2004 10:57:58 PST Xref: g2news1.google.com comp.lang.ada:6594 Date: 2004-11-28T18:57:58+00:00 List-Id: Brian May wrote: > You seem to be assuming I am using the thin layer directly in my > program, in actual fact I have a thick layer: > > procedure Put(Handle : Handle_Type; Item : in Byte_Array) is > > Item_Buffer : aliased Buffer ...; The stuff I suggested would go here. > > begin > ... > end Put; > > I believe this does require a copy. You may have to copy from Item_Buffer to Item, but that's inherent in the thick binding layer. -- Jeff Carter "Pray that there's intelligent life somewhere up in space, 'cause there's bugger all down here on earth." Monty Python's Meaning of Life 61