Once upon a time, Richard W.M. Jones <rjo...@redhat.com> said:
> I should have been clearer.  I meant passing pointers between non-C
> languages is likely not possible.

Well, it depends on the language, but it is probably possible with some
glue code (not necessarily practical though).  For example, giving perl
code a pointer isn't particularly useful, since perl doesn't provide for
random memory access that way.  It would be possible for an XS module to
provide access to the memory at the location though.

> We also suffer this problem in reverse: passing a pointer between two
> C libraries is not possible in another non-C language.  eg.  Passing a
> libvirt virDomainPtr from (Perl) Sys::Virt to Sys::Guestfs.

Why do you say that?  I'm pretty sure you can.
-- 
Chris Adams <cmad...@hiwaay.net>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Reply via email to