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 IAA29767; Thu, 14 Nov 2002 08:40:30 +0100 (MET) 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 IAA29757 for ; Thu, 14 Nov 2002 08:40:29 +0100 (MET) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from athlon.baretta.com (r-mi214-6a32.tin.it [62.211.4.32]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id gAE7eSX17032 for ; Thu, 14 Nov 2002 08:40:28 +0100 (MET) Received: from baretta.com (localhost.localdomain [127.0.0.1]) by athlon.baretta.com (Postfix) with ESMTP id 0914D273AD for ; Thu, 14 Nov 2002 08:40:33 +0100 (CET) Message-ID: <3DD35370.2080506@baretta.com> Date: Thu, 14 Nov 2002 08:40:32 +0100 From: Alessandro Baretta Organization: Baretta srl -- www.baretta.com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020826 X-Accept-Language: it, en MIME-Version: 1.0 To: ocaml Subject: Re: [Caml-list] labels and optional arguments in 3.06 References: <200211132333.gADNXON14954@plinky.bolt-action.com> <20021114100554Q.garrigue@kurims.kyoto-u.ac.jp> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Jacques Garrigue wrote: > You can write > > # (f ~a:2.0) 2.0 4.0;; > > The parenthesis creates staged applications, one labelled-style and > the other unlabelled-style. Is this only type-checking stuff, or does it impact code-generation? Namely, does this build a new closure for (f ~a:2.0) and then apply it to 2.0 and 4.0, or does it recognize that this is a direct invocation of f, thus skipping the closure creation? This might be a relevant issue for inner loops, so I thought I might ask. Alex ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners