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 TAA02831; Thu, 4 Dec 2003 19:12:31 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id TAA02103 for ; Thu, 4 Dec 2003 19:12:30 +0100 (MET) Received: from flyingtuxman.baretta.com (host66-243.pool8021.interbusiness.it [80.21.243.66]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id hB4ICTr19981 for ; Thu, 4 Dec 2003 19:12:29 +0100 (MET) Received: from baretta.com (flyingtuxman.baretta.com [127.0.0.1]) by flyingtuxman.baretta.com (8.12.8/8.12.8) with ESMTP id hB4IBp2u001692; Thu, 4 Dec 2003 19:11:52 +0100 Message-ID: <3FCF78E7.4080907@baretta.com> Date: Thu, 04 Dec 2003 19:11:51 +0100 From: Alex Baretta User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Artem Prisyznuk , ocaml Subject: Re: [Caml-list] Troubles with marshaled/unmarshaled exception References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Loop: caml-list@inria.fr X-Spam: no; 0.00; baretta:01 baretta:01 caml-list:01 marshaled:01 unmarshaled:01 artem:01 marshaled:01 unmarshaled:01 3.07:01 3.07:01 val:01 val:01 bool:01 caml:01 alex:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Artem Prisyznuk wrote: > 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 = It seems to work alright on 3.07+2. Here's my session: Objective Caml version 3.07+2 # let e = Failure "test";; val e : exn = Failure "test" # let e' : exn = Marshal.from_string (Marshal.to_string e []) 0;; val e' : exn = Failure "test" # e = e';; - : bool = true ------------------- 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