From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 67C17BB81 for ; Wed, 11 Jan 2006 09:16:26 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id k0B8GPl3026980 for ; Wed, 11 Jan 2006 09:16:26 +0100 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id JAA22684 for ; Wed, 11 Jan 2006 09:16:25 +0100 (MET) Received: from mail.barettadeit.com (h213-255-109-130.albacom.net [213.255.109.130] (may be forged)) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id k0B8GOE4026973 for ; Wed, 11 Jan 2006 09:16:25 +0100 Received: from [10.1.0.20] (unknown [10.1.0.20]) by mail.barettadeit.com (Postfix) with ESMTP id AB1BC7CDB28; Wed, 11 Jan 2006 09:20:11 +0100 (CET) Message-ID: <43C4BEDB.5030002@barettadeit.com> Date: Wed, 11 Jan 2006 09:16:27 +0100 From: Alessandro Baretta User-Agent: Debian Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jonathan Roewen Cc: caml-list@inria.fr Subject: Re: [Caml-list] Pickling for OCaml? References: <20060106211605.6e0d2bd8.ocaml-erikd@mega-nerd.com> <43BE8E82.1000901@barettadeit.com> <20060106160207.GK5470@three-tuns.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce with ID 43C4BED9.002 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 43C4BED8.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; baretta:01 baretta:01 barettadeit:01 caml-list:01 ocaml:01 barettadeit:01 xcaml:01 xcaml:01 asxcaml:01 wrote:01 pair:01 srl:01 int:01 data:02 data:02 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=FORGED_RCVD_HELO autolearn=disabled version=3.0.3 Jonathan Roewen wrote: > let pickler = pair (string list,int) > > let data = pickle pickler (["hello";"world"],-1) > > let value = unpickle pickler (List.rev data) Neat trick! Alex -- ********************************************************************* http://www.barettadeit.com/ Baretta DE&IT A division of Baretta SRL tel. +39 02 370 111 55 fax. +39 02 370 111 54 Our technology: The Application System/Xcaml (AS/Xcaml) The FreerP Project