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 IAA28484; Fri, 14 Sep 2001 08:12:55 +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 IAA21527 for ; Fri, 14 Sep 2001 08:12:54 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f8E6Crf12110; Fri, 14 Sep 2001 08:12:53 +0200 (MET DST) Received: (from fpottier@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id IAA28330; Fri, 14 Sep 2001 08:12:52 +0200 (MET DST) Date: Fri, 14 Sep 2001 08:12:52 +0200 From: Francois Pottier To: Pascal Brisset Cc: caml-list@inria.fr Subject: Re: [Caml-list] renaming a type Message-ID: <20010914081252.A28439@pauillac.inria.fr> Reply-To: Francois.Pottier@inria.fr References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mutt 1.0i In-Reply-To: ; from brisset@recherche.enac.fr on Thu, Sep 13, 2001 at 03:52:25PM +0200 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > Unfortunately it does not work is I instantiate a polymorphic type with the > same idea: > > # module M = struct type 'a t = T end;; > module M : sig type 'a t = T end > # type t' = int M.t = T;; > ^^^^^^^^^^^^^^^^ Why not do it in two steps? # module M = struct type 'a t = T end;; module M : sig type 'a t = T end # type 'a t' = 'a M.t = T;; type 'a t' = 'a M.t = T # type t'' = int t';; type t'' = int t' Clearly very clumsy, of course, but it works. -- François Pottier Francois.Pottier@inria.fr http://pauillac.inria.fr/~fpottier/ ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr