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 JAA08339; Fri, 19 Sep 2003 09:09:44 +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 JAA26274 for ; Fri, 19 Sep 2003 09:09:43 +0200 (MET DST) Received: from newext.lri.fr (ext.lri.fr [129.175.15.4]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h8J79hj04407 for ; Fri, 19 Sep 2003 09:09:43 +0200 (MET DST) Received: from serveur-mail.lri.fr (serveur-mail [129.175.8.90]) by newext.lri.fr (8.12.10/jtpda-5.4) with ESMTP id h8J6vN35006825 ; Fri, 19 Sep 2003 08:57:23 +0200 (MEST) Received: from pc8-119.lri.fr (pc8-119 [129.175.8.119]) by serveur-mail.lri.fr (8.11.6p2/jtpda-5.3.2) with ESMTP id h8J6vMI10712 ; Fri, 19 Sep 2003 08:57:23 +0200 (MEST) Received: from localhost ([127.0.0.1]) by pc8-119.lri.fr with esmtp (Exim 3.36 #1 (Debian)) id 1A0FCj-0005eV-00; Fri, 19 Sep 2003 08:57:22 +0200 Date: Fri, 19 Sep 2003 08:57:21 +0200 (MEST) From: Julien Signoles To: Fernando Alegre cc: malc , Subject: Re: [Caml-list] possible typechecker bug In-Reply-To: <20030919020609.GA25816@gaia.cc.gatech.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-MailScanner: Found to be clean X-Loop: caml-list@inria.fr X-Spam: no; 0.00; signoles:01 signoles:01 lri:01 caml-list:01 bug:01 alegre:01 0400,:01 malc:01 bug:01 struct:01 afloat:99 lri:01 mcvoy:01 caml:01 workaround:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Thu, 18 Sep 2003, Fernando Alegre wrote: > On Fri, Sep 19, 2003 at 06:00:35AM +0400, malc wrote: > > > http://caml.inria.fr/archives/200211/msg00058.html > > Yes. This seems to be another instance of possibly the same bug. The > workaround suggested in your case was to add "and" between the types... > > However, in our case, there is only one type, so I cannot add an "and"... > Can anyone suggest another workaround? Inspired from the above message, you can rewrite the module BFloat as follow : module Bfloat = struct type t = Afloat.t (* introduce a new manifest type... *) and x = {f:t} (* ... so you can use "and" *) end Julien. -- mailto:Julien.Signoles@lri.fr ; http://www.lri.fr/~signoles "In theory, practice and theory are the same, but in practice they are different" (Larry McVoy) ------------------- 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