From: Damien Doligez <Damien.Doligez@inria.fr>
To: sicard@poleia.lip6.fr
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] lazy and marshal
Date: Tue, 17 Jun 2003 19:44:35 +0200 [thread overview]
Message-ID: <5C5EC6BE-A0EB-11D7-9A67-0003930FCE12@inria.fr> (raw)
In-Reply-To: <51350.132.227.204.18.1055863264.squirrel@mailia.lip6.fr>
On Tuesday, June 17, 2003, at 05:21 PM, sicard@poleia.lip6.fr wrote:
> Hello
> I don't understand the following error :
> Marshalling a lazy value don't work when the value has not been
> computed.
>
>
> # let a = lazy 0;;
> val a : int lazy_t = <lazy>
> # Marshal.to_string a [ Marshal.Closures ] ;;
> Exception: Invalid_argument "output_value: abstract value".
>
> # Lazy.force a;;
> - : int = 0
> # Marshal.to_string a [ Marshal.Closures ] ;;
> - : string =
> "\132\149??\000\000\000\001\000\000\000\000\000\000\000\000\000\000\000
> \000@"
> #
# Marshal.to_string (fun x -> x) [ Marshal.Closures ];;
You cannot marshall the functional values that are compiled
by the toplevel. This is a limitation of the toplevel, not
lazy values.
-- Damien
-------------------
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
next prev parent reply other threads:[~2003-06-17 17:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-17 15:21 sicard
2003-06-17 15:55 ` Kip Macy
2003-06-17 17:44 ` Damien Doligez [this message]
2003-06-19 9:46 ` Pierre Weis
2003-06-19 12:46 ` Damien Doligez
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=5C5EC6BE-A0EB-11D7-9A67-0003930FCE12@inria.fr \
--to=damien.doligez@inria.fr \
--cc=caml-list@inria.fr \
--cc=sicard@poleia.lip6.fr \
/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