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 TAA22123; Tue, 1 Jul 2003 19:05:49 +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 TAA22160 for ; Tue, 1 Jul 2003 19:05:48 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h61H5Tj10813; Tue, 1 Jul 2003 19:05:29 +0200 (MET DST) Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id TAA21900; Tue, 1 Jul 2003 19:05:29 +0200 (MET DST) From: Pierre Weis Message-Id: <200307011705.TAA21900@pauillac.inria.fr> Subject: Re: [Caml-list] syntax of private constructors in CVS version In-Reply-To: <1057056689.3405.15.camel@dragonfly.localdomain> from "Yaron M. Minsky" at "Jul 1, 103 06:51:29 am" To: yminsky@cs.cornell.edu (Yaron M. Minsky) Date: Tue, 1 Jul 2003 19:05:29 +0200 (MET DST) Cc: caml-list@inria.fr X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; pierre:01 weis:01 caml-list:01 yaron:01 minsky:01 cornell:01 yminsky:01 cristal:01 constructors:01 syntax:02 module:03 abstract:03 types:03 cvs:05 pattern:06 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > Would it be fair to say that the main distinction between private types > and abstract types is that with private types, constructors are only > invocable from inside the module, but destructors (e.g., pattern > matching) are available both inside and outside of the module? > > y > -- > |--------/ Yaron M. Minsky \--------| > |--------\ http://www.cs.cornell.edu/home/yminsky/ /--------| You are right: that's yet another way to say it :) Pierre Weis INRIA, Projet Cristal, Pierre.Weis@inria.fr, http://pauillac.inria.fr/~weis/ ------------------- 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