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

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Mike Lin <mikelin@M...>
Subject: Re: [Caml-list] Marshal and exceptions
http://caml.inria.fr/mantis/view.php?id=1961

On Fri, Nov 26, 2010 at 11:22 AM, Christoph Bauer <
christoph.bauer@lmsintl.com> wrote:

>  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
>
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>
>