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: Christoph Bauer <christoph.bauer@l...>
Subject: Marshal and exceptions
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