Version française
Home     About     Download     Resources     Contact us    
Browse thread
marshalling objects
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jacques Garrigue <garrigue@m...>
Subject: Re: [Caml-list] marshalling objects
From: Pietro Abate <Pietro.Abate@anu.edu.au>

> It's not clear to me if it is possible or not to marshall objects ? From
> my tests it is not the case (output_value: abstract value (outside
> heap).). Am I missing something ? What is common practice to send
> objects across the wire ?

It is possible, but there was a bug in 3.08.
In 3.09, you can marshal an object with
   Marshal.to_string obj [Marshal.Closures]
Note that this means that the method table is really sent, as an array
of closures, which is possibly very innefficient, and also means that
the program on the other side must be the same one.

Jacques Garrigue