From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 1869EBB81 for ; Fri, 2 Dec 2005 11:45:31 +0100 (CET) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.200]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id jB2AjU6r010388 for ; Fri, 2 Dec 2005 11:45:30 +0100 Received: by nproxy.gmail.com with SMTP id x37so183013nfc for ; Fri, 02 Dec 2005 02:45:30 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=kGUy04Mlm76WW/PEpRstY64L5yFP6VZ3dgwlEohBqtR5gQ37p52rPPVlGgs1ANaO9Vi4o0rbBVLtm63avSDzT8789NJI2+epMnuRGWGVtf3m8T/MAZMFVblSB4dZVLqTzeT9cSDcr9RZpuiF1DY+6y+w+BzWvD59xoI1mW0GCOI= Received: by 10.48.246.18 with SMTP id t18mr86475nfh; Fri, 02 Dec 2005 02:45:29 -0800 (PST) Received: by 10.49.1.13 with HTTP; Fri, 2 Dec 2005 02:45:29 -0800 (PST) Message-ID: <3d13dcfc0512020245y21228ac6q@mail.gmail.com> Date: Fri, 2 Dec 2005 11:45:29 +0100 From: David MENTRE Reply-To: To: "basile@starynkevitch.net" Subject: Re: [Caml-list] Reporting on sucess/failure of tail recursion Cc: Erik de Castro Lopo , caml-list@yquem.inria.fr In-Reply-To: <55541.132.166.133.216.1133515788.squirrel@panel.lost-oasis.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20051202200957.2fb14d49.ocaml-erikd@mega-nerd.com> <55541.132.166.133.216.1133515788.squirrel@panel.lost-oasis.net> X-Miltered: at nez-perce with ID 439025CA.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 recursion:01 basile:01 basile:01 ocaml:01 internals:01 compiler:01 typing:01 tail:01 caml:02 implement:05 inria:05 quite:06 php:93 practice:07 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.9 required=5.0 tests=RCVD_BY_IP,REPLY_TO_EMPTY, TO_ADDRESS_EQ_REAL autolearn=disabled version=3.0.3 Hello, 2005/12/2, basile@starynkevitch.net : > agree it would be quite useful So do I. I've just submited it as feature request: http://caml.inria.fr/mantis/view.php?id=3D3905 > (but my knowledge of ocaml internals make > me think that it is in principle easy, but in practice would require a lo= t > of changes within the compiler, since tail-rec detection is done in passe= s > near the backend, after the typing.). I arrived to the same conclusion. I wanted to implement that feature but when I discovered the same facts as you, I ditched the project (ok, I could have try a little harder but it wasn't the week-end project I expected :-). Yours, d.