From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id QAA25471; Thu, 4 Dec 2003 16:46:26 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id QAA25329 for ; Thu, 4 Dec 2003 16:46:25 +0100 (MET) Received: from megs23.100mwh.com ([205.214.86.13]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id hB4FkN125357 for ; Thu, 4 Dec 2003 16:46:24 +0100 (MET) Received: from [205.214.86.158] (helo=uaapc442) by megs23.100mwh.com with asmtp (Exim 4.24) id 1ARvgI-0005Fc-TO; Thu, 04 Dec 2003 08:46:19 -0700 Date: Thu, 04 Dec 2003 17:46:30 +0200 To: caml-bugs@pauillac.inria.fr Subject: [Caml-list] Troubles with marshaled/unmarshaled exception Cc: caml-list@inria.fr From: Artem Prisyznuk Content-Type: text/plain; format=flowed; charset=koi8-r MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: User-Agent: Opera7.22/Win32 M2 build 3221 X-MailScanner-Information: Please contact the ISP for more information X-MailScanner: Found to be clean X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - megs23.100mwh.com X-AntiAbuse: Original Domain - inria.fr X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - sit.kiev.ua X-Loop: caml-list@inria.fr X-Spam: no; 0.00; marshaled:01 unmarshaled:01 artem:01 marshaled:01 unmarshaled:01 endline:01 endline:01 printf:01 printf:01 artem:01 marshal:01 marshal:01 match:02 exception:02 exception:02 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hello, I found strange behavior of pattern matching of marshaled/unmarshaled exception. Next code describe problem: let e = Failure "test";; let e' = Marshal.from_string (Marshal.to_string e []) 0;; let print_fun exc = match exc with Failure _ -> print_endline "Matching OK" | exc -> print_endline "Matching Fail";; print_fun e;; print_fun e';; Printf.printf "e = e' is %b\n" (e=e');; Output: Matching OK Matching Fail e = e' is true So second call print missing value. -- Artem Prysyznuk tema@sit.kiev.ua ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners