Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] swig like library...
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Yamagata Yoriyuki <yoriyuki@m...>
Subject: Re: [Caml-list] swig like library...
From: art yerkes <ayerkes@speakeasy.net>
Subject: Re: [Caml-list] swig like library...
Date: Sat, 24 Apr 2004 20:24:43 -0500

> I agree that the lack of further automation is a bottleneck for SWIG
> users. I have considered forking some of the core type functions into the
> ocaml module for that reason.

I think swig is nice.  It does the supposed job, quick and dirty
interface to C.

I have only minor complaints.  First, the access to structure fields
involves searching assoc lists, using string as a key.  As a result,
my program spends a lot of time in comparing strings.  A possible and
easy improvement is making access functions for structure fields
accessible from the outside.

Another problem, which may not be a swig problem, is that my program
occasionally crash.  malloc in a structure creation function (new_*)
causes seg fault.  Could you give me a suggestion where I have to
look?

--
Yamagata Yoriyuki

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners