From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 1C771BB81 for ; Mon, 6 Mar 2006 18:15:04 +0100 (CET) Received: from ptb-cgirelay01.plus.net (ptb-cgirelay01.plus.net [195.166.130.40]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id k26HF32w015203 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO) for ; Mon, 6 Mar 2006 18:15:03 +0100 Message-Id: <200603061715.k26HF32w015203@nez-perce.inria.fr> Received: from [212.159.6.58] (helo=ptn-atmail03.plus.net) by ptb-cgirelay01.plus.net with esmtp (Exim 4.34) id 1FGJIH-0006Ke-2I; Mon, 06 Mar 2006 17:14:49 +0000 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: binary Mime-Version: 1.0 From: Jonathan Harrop To: caml-list@yquem.inria.fr, Michael Wohlwend Subject: Re: [Caml-list] recursive or loop Reply-To: jdh30@jdh30.plus.com X-Mailer: AtMail 4.01 X-Origin: 217.36.231.62 X-Uidl: 20060306174232902micha-1@fantasymailde Date: Mon, 06 Mar 2006 17:25:37 +0000 X-j-chkmail-Score: MSGID : 440C6E17.001 on nez-perce : j-chkmail score : X : 0/20 1 X-Miltered: at nez-perce with ID 440C6E17.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; recursive:01 recursive:01 stack:01 cheers:01 2006:98 15,:98 wrote:01 caml-list:01 argument:01 purely:02 functional:02 cps:02 programming:03 passing:03 problem:05 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.5 required=5.0 tests=FROM_ENDS_IN_NUMS, MSGID_FROM_MTA_HEADER autolearn=disabled version=3.0.3 On Mon Mar 6 16:42 , Michael Wohlwend sent: >On Monday 06 March 2006 15:15, you wrote: >> > If you're doing purely functional programming then you'll be passing the >> > state as an argument to the recursive function. >> >> How do you restore the call stack? > >yes the state is not the problem, the callstack is the (my) problem... Write in CPS? Cheers, Jon.