Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] possible typechecker bug
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Julien Signoles <Julien.Signoles@l...>
Subject: Re: [Caml-list] possible typechecker bug
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