From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 67C46BC43 for ; Fri, 29 Oct 2004 15:13:07 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id i9TDD6VM013952 for ; Fri, 29 Oct 2004 15:13:07 +0200 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 PAA08084 for ; Fri, 29 Oct 2004 15:13:06 +0200 (MET DST) Received: from hedwig1.umh.ac.be (hedwig2.umh.ac.be [193.190.193.73]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id i9TDD6Va013948 for ; Fri, 29 Oct 2004 15:13:06 +0200 Received: from poincare (wigner.swapping.umh.ac.be [10.102.100.18]) by hedwig1.umh.ac.be (8.13.1/8.13.1) with ESMTP id i9TDEsgf1392654; Fri, 29 Oct 2004 15:14:58 +0200 Received: from poincare ([127.0.0.1] helo=localhost ident=trch) by poincare with esmtp (Exim 3.36 #1 (Debian)) id 1CNWYL-0001G0-00; Fri, 29 Oct 2004 15:12:25 +0200 Date: Fri, 29 Oct 2004 15:11:47 +0200 (CEST) Message-Id: <20041029.151147.51093516.debian00@tiscali.be> To: jon@jdh30.plus.com Cc: caml-list@inria.fr Subject: Re: [Caml-list] Re: replacing Mathematica was: Polymorphic pretty printing From: Christophe TROESTLER In-Reply-To: <200410282244.44931.jon@jdh30.plus.com> References: <4180D736.2020606@andrej.com> <20041028.151108.108534348.debian00@tiscali.be> <200410282244.44931.jon@jdh30.plus.com> Organization: None X-Spook: NATO assassination Peking airframe Majic AUTODIN asset military Jiang Zemin IRA X-Blessing: Om Ah Hum Vajra Guru Pema Siddhi Hum X-Operating-System: GNU/Linux (http://www.linux.org/) X-Mailer-URL: http://www.mew.org/ X-Mailer: Mew version 4.1 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.1 (www dot roaringpenguin dot com slash mimedefang) X-Miltered: at concorde with ID 418241E2.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 418241E2.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 replacing:01 christophe:01 troestler:01 wrote:01 ...:98 polymorphic:01 suited:01 int:01 int:01 debian:02 float:03 float:03 chris:04 thu:05 X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on yquem.inria.fr X-Spam-Status: No, score=0.5 required=5.0 tests=FROM_ENDS_IN_NUMS autolearn=disabled version=3.0.0 X-Spam-Level: On Thu, 28 Oct 2004, Jon Harrop wrote: > > However, in GCaml, do the different definitions (e.g. "+" : int -> > int -> int | float -> float -> float) have to be specified at the > same time (i.e. in the "+" function)? If so, then GCaml is also ill > suited... The future of GCaml is not clear but I hope that "additions" to a generic definitions. Maybe with generic (+) = | float -> float -> float => (+.) | $a -> $a -> $a => (+) (* old + *) ChriS