English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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: 2010-11-26 (16:22)
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