From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 5C4CED16D for ; Mon, 25 Jul 2005 10:58:27 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j6P8wQLK022247 for ; Mon, 25 Jul 2005 10:58:27 +0200 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 KAA17313 for ; Mon, 25 Jul 2005 10:58:26 +0200 (MET DST) Received: from alex.barettalocal.com (h213-255-109-130.albacom.net [213.255.109.130] (may be forged)) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j6P8wP5Q022244 for ; Mon, 25 Jul 2005 10:58:26 +0200 Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by alex.barettalocal.com (Postfix) with ESMTP id DF5F12BAF07; Mon, 25 Jul 2005 10:57:21 +0200 (CEST) Message-ID: <42E4A971.7070209@barettadeit.com> Date: Mon, 25 Jul 2005 10:57:21 +0200 From: Alex Baretta User-Agent: Debian Thunderbird 1.0.2 (X11/20050331) X-Accept-Language: en-us, en MIME-Version: 1.0 To: brogoff Cc: caml-list@inria.fr Subject: Re: [Caml-list] "Just say no!" campaign against Obj [was: How to do this properly with OCaml?] References: <42E2393B.5030209@inria.fr> <42E342FE.6060408@barettadeit.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce with ID 42E4A9B2.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 42E4A9B1.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; baretta:01 caml-list:01 ocaml:01 baretta:01 polymorphism:01 recursion:01 okasaki's:01 type-checker:01 caml-list:01 campaign:98 2005,:98 1089:98 wrote:01 wrote:01 polymorphic:01 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.9 required=5.0 tests=FORGED_RCVD_HELO,PLING_QUERY autolearn=disabled version=3.0.3 brogoff wrote: > On Sun, 24 Jul 2005, Alex Baretta wrote: > > I was able to use the higher order polymorphism of record fields to implement > polymorphic recursion, WITHOUT using Obj.magic. I posted that approach on the > list a long time ago, it was really the same trick as using polymorphic methods > to do the same. You can use that trick to implement the signatures in Okasaki's > book that use P.R. fairly easily. Why did you need Obj.magic? I had missed your post[1]. I just read it. The function dictionary paradigm is probably what I'm missing to make the type-checker happy. Thanks Brian! Alex [1] http://caml.inria.fr/pub/ml-archives/caml-list/2002/08/9e1089a04ce714a0541373be008c3130.en.html -- ********************************************************************* http://www.barettadeit.com/ Baretta DE&IT A division of Baretta SRL tel. +39 02 370 111 55 fax. +39 02 370 111 54 Our technology: The Application System/Xcaml (AS/Xcaml) The FreerP Project