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 PAA28426; Thu, 8 Aug 2002 15:30:42 +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 PAA28332 for ; Thu, 8 Aug 2002 15:30:42 +0200 (MET DST) Received: from nef.ens.fr (nef.ens.fr [129.199.96.32]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g78DUfj16168 for ; Thu, 8 Aug 2002 15:30:41 +0200 (MET DST) Received: from clipper.ens.fr (clipper-gw.ens.fr [129.199.1.22]) by nef.ens.fr (8.10.1/1.01.28121999) with ESMTP id g78DUel29812 ; Thu, 8 Aug 2002 15:30:40 +0200 (CEST) Received: from localhost (frisch@localhost) by clipper.ens.fr (8.12.3/jb-1.1) id g78DUdQK011707 ; Thu, 8 Aug 2002 15:30:39 +0200 (MET DST) Date: Thu, 8 Aug 2002 15:30:39 +0200 (MET DST) From: Alain Frisch To: Michel Quercia cc: Caml list Subject: Re: [Caml-list] Not allowed as right-hand side of 'let rec' In-Reply-To: <20020808145630.715bf4c1.michel.quercia@prepas.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT X-Virus-Scanned: by amavisd-milter (http://amavis.org/) Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Thu, 8 Aug 2002, Michel Quercia wrote: > > note : si l'on pouvait avoir un affichage un peu plus réduit pour les > > enregistrements qui pointent sur eux-mêmes ? > > Vous pouvez écrire une fonction d'impression ad-hoc et signaler au > toplevel de l'utiliser via la directive install_printer. Ou alors patcher un peu la routine d'affichage générique du toplevel, pour qu'elle se rende compte qu'il y a des boucles et affiche des choses du genre: let v1 = { bla = v1; blo = v2 } and v2 = (v1,v1) in (v1,v2) J'avais envoyé un patch (sale) à caml-bugs pour accompagner un feature-wish en ce sens, ça doit pouvoir se retrouver dans l'interface web (sinon, si ça intéresse quelqu'un, je peux l'extraire de nouveau). -- Alain ------------------- 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