* 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
* Re: [Caml-list] Marshal and exceptions 2010-11-26 16:22 Marshal and exceptions Christoph Bauer @ 2010-11-26 18:25 ` Mike Lin 2010-11-26 21:58 ` Christophe Raffalli 0 siblings, 1 reply; 3+ messages in thread From: Mike Lin @ 2010-11-26 18:25 UTC (permalink / raw) To: caml-list [-- Attachment #1: Type: text/plain, Size: 671 bytes --] 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 > > [-- Attachment #2: Type: text/html, Size: 1915 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] Marshal and exceptions 2010-11-26 18:25 ` [Caml-list] " Mike Lin @ 2010-11-26 21:58 ` Christophe Raffalli 0 siblings, 0 replies; 3+ messages in thread From: Christophe Raffalli @ 2010-11-26 21:58 UTC (permalink / raw) To: Mike Lin; +Cc: caml-list [-- Attachment #1: Type: text/plain, Size: 228 bytes --] Le 26/11/10 19:25, Mike Lin a écrit : > http://caml.inria.fr/mantis/view.php?id=1961 OK, but then if you are not allowed to marshall exception, marshalling an exception should raise an exception ... Cheers, Christophe [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 259 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