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 HAA12760; Sun, 24 Jun 2001 07:49:36 +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 HAA12752 for ; Sun, 24 Jun 2001 07:49:35 +0200 (MET DST) Received: from hotmail.com (f227.law15.hotmail.com [64.4.23.227]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f5O5nYf16182 for ; Sun, 24 Jun 2001 07:49:35 +0200 (MET DST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sat, 23 Jun 2001 22:49:33 -0700 Received: from 65.26.148.207 by lw15fd.law15.hotmail.msn.com with HTTP; Sun, 24 Jun 2001 05:49:33 GMT X-Originating-IP: [65.26.148.207] From: "Jeremy Fincher" To: caml-list@inria.fr Subject: Re: [Caml-list] New to OCaml: can someone explain how this code can be done better? Date: Sun, 24 Jun 2001 01:49:33 -0400 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 24 Jun 2001 05:49:33.0671 (UTC) FILETIME=[71C67770:01C0FC71] Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk >The function permute_rec is an implementation detail. >So you scope it _inside_ the permute function I was worried this would incur a slow down (in Python, nested function objects are instantiated when a function is called and destroyed when it exits; the code object isn't destroyed, but there still is the additional overhead of creating a function object from it.) I assume now, since it's a feature so widely used (I see it anytime I look at others' OCaml code) that it doesn't. Thanks for pointing that out. Jeremy _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr