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 UAA11844; Wed, 22 Sep 2004 20:45:20 +0200 (MET DST) 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 UAA10684 for ; Wed, 22 Sep 2004 20:45:19 +0200 (MET DST) Received: from qrnik.knm.org.pl (paf87.warszawa.sdi.tpnet.pl [217.96.225.87]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id i8MIj4wi030110 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Wed, 22 Sep 2004 20:45:17 +0200 Received: from qrczak by qrnik.knm.org.pl with local (Exim 3.36 #1) id 1CAC6j-00051n-00; Wed, 22 Sep 2004 20:44:49 +0200 To: Brian Hurt Cc: caml-list Subject: Re: [Caml-list] Re: OCAML Downcasting? X-Face: T0C?'>x8&TymF@` Ej6~H&|Uc2j{~CS,tTn|&?jC^xp+,k-6\@io3>5H5.L4GBdPptQ:pN`QJL$~2! References: From: "Marcin 'Qrczak' Kowalczyk" Mail-Followup-To: Brian Hurt , caml-list Date: Wed, 22 Sep 2004 20:44:49 +0200 In-Reply-To: (Brian Hurt's message of "Wed, 22 Sep 2004 13:42:16 -0500 (CDT)") Message-ID: <87fz5axhwe.fsf@qrnik.zagroda> User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Miltered: at concorde with ID 4151C830.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 downcasting:01 marcin:01 'qrczak':01 kowalczyk:01 qrczak:01 ignoring:01 expressive:01 marcin:01 kowalczyk:01 qrczak:01 ocaml:01 ocaml:01 variants:01 writes:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Brian Hurt writes: >> Apply this reasoning to the exn type. Why don't you define all exn >> constructors in one place? > > Ignoring the fact that exceptions are built into the language, I'd read > section 4.2 "Polymorphic Variants" of the Ocaml language manual for how to > get around this. It helps only in some cases. In particular it's not expressive enough to replace exn. -- __("< Marcin Kowalczyk \__/ qrczak@knm.org.pl ^^ http://qrnik.knm.org.pl/~qrczak/ ------------------- 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