Hi all, I'm wrapping some C code that requires me to define a struct in Ocaml like this:
type xt = { f : xt -> a } and then pass the struct to C which stores it, and later the C needs to find function f, call it from C, passing it the Ocaml xt struct. Anyone have any clues on how to do this? I have most of the rest of the C wrapper sorted out, its just this thats causing me any difficulty. Cheers, Erik -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/ _______________________________________________ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http://caml.inria.fr Beginner's list: http://groups.yahoo.com/group/ocaml_beginners Bug reports: http://caml.inria.fr/bin/caml-bugs