Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Alessandro Baretta <a.baretta@barettadeit.com>
To: Jonathan Roewen <jonathan.roewen@gmail.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Pickling for OCaml?
Date: Wed, 11 Jan 2006 09:16:27 +0100	[thread overview]
Message-ID: <43C4BEDB.5030002@barettadeit.com> (raw)
In-Reply-To: <ad8cfe7e0601102048i7b4c79e7ha2dece58cf470ade@mail.gmail.com>

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)
<http://www.asxcaml.org/>

The FreerP Project
<http://www.freerp.org/>


  parent reply	other threads:[~2006-01-11  8:16 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-06  9:59 Jonathan Roewen
2006-01-06 10:16 ` Erik de Castro Lopo
2006-01-06 10:27   ` Jonathan Roewen
2006-01-06 14:30     ` Markus Mottl
2006-01-06 15:36     ` Alessandro Baretta
2006-01-06 16:02       ` Mark Shinwell
2006-01-11  4:48         ` Jonathan Roewen
2006-01-11  4:50           ` Jonathan Roewen
2006-01-11  8:16           ` Alessandro Baretta [this message]
2006-01-06 14:50 ` David MENTRE

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43C4BEDB.5030002@barettadeit.com \
    --to=a.baretta@barettadeit.com \
    --cc=caml-list@inria.fr \
    --cc=jonathan.roewen@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox