From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 20F85BC69 for ; Sun, 22 Oct 2006 20:15:21 +0200 (CEST) Received: from sMtp.neuf.fr (sp604002mt.neufgp.fr [84.96.92.61]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id k9MIFKrJ020339 for ; Sun, 22 Oct 2006 20:15:20 +0200 Received: from [192.168.144.3] ([84.5.234.181]) by sp604002mt.gpm.neuf.ld (Sun Java System Messaging Server 6.2-5.05 (built Feb 16 2006)) with ESMTP id <0J7J00MHHRKH93M0@sp604002mt.gpm.neuf.ld> for caml-list@inria.fr; Sun, 22 Oct 2006 19:07:29 +0200 (CEST) Date: Sun, 22 Oct 2006 19:08:01 +0200 From: Christophe Raffalli Subject: Re: [Caml-list] try and tail call In-reply-to: <6ebe51ce0610211944m6f40358exb7793ecef4889f09@mail.gmail.com> To: ketty Cc: Christophe Raffalli , caml-list@inria.fr Message-id: <453BA571.3000904@univ-savoie.fr> MIME-version: 1.0 Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 7BIT References: <453A27EB.8070609@univ-savoie.fr> <6ebe51ce0610211944m6f40358exb7793ecef4889f09@mail.gmail.com> User-Agent: Thunderbird 1.5.0.7 (Macintosh/20060909) X-Miltered: at concorde with ID 453BB538.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; christophe:01 raffalli:01 christophe:01 raffalli:01 univ-savoie:01 exn:01 caml-list:01 exception:01 tail:01 tail:01 raise:03 raise:03 propagate:07 propagate:07 does:14 > > You could do it like this: > > exception Propagate of exn > > try > ... > try ... > with x -> raise (Propagate x) > with > | Propagate x -> raise x > | ... > does not work, calls in the second ... are not tail call. (no tail call in a try) Christophe