Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
interfacing ocaml and external structure
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 1999-12-23 (16:38)
From: Xavier Leroy <Xavier.Leroy@i...>
Subject: Re: interfacing ocaml and external structure
> I saw some messages about external structure (such "large array") and
> interfaces with ocaml.
> With the function alloc_final, we can give the free function of the
> external type to GC.
> I think the other interesting feature to use in ocaml is marshalling
> (perhaps there are others).
> Do you think it is possible to give, like the free function, the
> marshall function for an external type ?

Yes, we have some work in progress in this direction.  The idea is
to attach to "finalized" blocks a record of C functions, supporting
not only finalization, but also equality test, hashing, marshalling
and unmarshalling.  This would be useful not only for large arrays,
but also for other datatypes in the Caml library such as big integers.

- Xavier Leroy