caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Marshal and exceptions
@ 2010-11-26 16:22 Christoph Bauer
  2010-11-26 18:25 ` [Caml-list] " Mike Lin
  0 siblings, 1 reply; 3+ messages in thread
From: Christoph Bauer @ 2010-11-26 16:22 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: text/plain, Size: 213 bytes --]

Hi,

why is the result 2 of the following expression?

match Marshal.from_string (Marshal.to_string (Failure "test") []) 0 with
    Failure _ -> 1
  | _ -> 2    ;;

Ocaml 3.11.2.

TIA,
Christoph Bauer

[-- Attachment #2: Type: text/html, Size: 1351 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-11-26 21:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-26 16:22 Marshal and exceptions Christoph Bauer
2010-11-26 18:25 ` [Caml-list] " Mike Lin
2010-11-26 21:58   ` Christophe Raffalli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).