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 XAA10697; Thu, 9 Jan 2003 23:42:08 +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 XAA10656 for ; Thu, 9 Jan 2003 23:42:08 +0100 (MET) Received: from verdot.inria.fr (verdot.inria.fr [128.93.11.7]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h09Mg7r28104 for ; Thu, 9 Jan 2003 23:42:07 +0100 (MET) Received: (from ddr@localhost) by verdot.inria.fr (8.9.3/8.9.3) id XAA19131 for caml-list@inria.fr; Thu, 9 Jan 2003 23:42:07 +0100 Date: Thu, 9 Jan 2003 23:42:07 +0100 From: Daniel de Rauglaudre To: caml-list@inria.fr Subject: Re: [Caml-list] record declaration, SML Message-ID: <20030109234207.B19061@verdot.inria.fr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from aoz@dmailman.com on Thu, Jan 09, 2003 at 08:56:03AM -0500 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi, > What's best translation of the following SML type? > datatype t = C of { f : int } A solution is: type t = C of < f : int > It is what does the converter SML->OCaml by Camlp4: camlp4 pa_sml.cmo pr_o.cmo -impl file.sml -- Daniel de RAUGLAUDRE http://cristal.inria.fr/~ddr/ ------------------- 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