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,72137304956d9360 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-09-19 16:08:30 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!lnsnews.lns.cornell.edu!newsstand.cit.cornell.edu!ngpeer.news.aol.com!newsfeed1!bredband!uio.no!feed.news.nacamar.de!newsfeed.freenet.de!194.168.222.61.MISMATCH!newspeer1-gui.server.ntli.net!ntli.net!newsfep4-winn.server.ntli.net.POSTED!53ab2750!not-for-mail From: chris User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5b) Gecko/20030903 Thunderbird/0.2 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: generic imports? void* -> generics? References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Sat, 20 Sep 2003 00:12:58 +0100 NNTP-Posting-Host: 81.98.236.164 X-Complaints-To: abuse@ntlworld.com X-Trace: newsfep4-winn.server.ntli.net 1064012910 81.98.236.164 (Sat, 20 Sep 2003 00:08:30 BST) NNTP-Posting-Date: Sat, 20 Sep 2003 00:08:30 BST Organization: ntl Cablemodem News Service Xref: archiver1.google.com comp.lang.ada:42702 Date: 2003-09-20T00:12:58+01:00 List-Id: Nick Roberts wrote: > The general idea is that Ada code is able to read a variable from the memory > area returned by this C function, interpreted as a stream array so that the > variable's stream-oriented Read procedure or Input function can be used > directly. There could well be difficulties associated with writing data > using C code and then reading it using (stream-oriented) Ada code. That's an interesting idea! I'll have to remember that one in future, thanks for that. My understanding of Lua is that it wouldn't usually be a problem as the C code would probably call Ada functions to do the work on the Userdata. There might be cases where that wouldn't happen but I'm not sure (lua will gc the userdata if it's not 'lightweight', but you can control how it does this through a user defined function) Chris