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 RAA02807; Thu, 10 Jun 2004 17:04:05 +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 RAA02732 for ; Thu, 10 Jun 2004 17:04:04 +0200 (MET DST) Received: from aomori.annexia.org (annexia.force9.co.uk [212.56.101.183]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i5AF42SH013453 for ; Thu, 10 Jun 2004 17:04:03 +0200 Received: from rich by aomori.annexia.org with local (Exim 3.36 #1 (Debian)) id 1BYR62-0003Iq-00 for ; Thu, 10 Jun 2004 16:04:02 +0100 Date: Thu, 10 Jun 2004 16:04:02 +0100 Cc: caml-list@inria.fr Subject: Re: [Caml-list] Assert fail in partial application Message-ID: <20040610150402.GA12554@redhat.com> References: <20040610090520.GA6967@bourg.inria.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.5.1+cvs20040105i From: Richard Jones X-Miltered: at concorde with ID 40C87863.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 2004:99 pons:01 camlp:01 obstacle:01 vanier:01 ltd:98 ifdef:01 fernandez:01 0200,:01 preprocess:02 olivier:02 assert:02 explicit:03 wrote:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Thu, Jun 10, 2004 at 11:15:54AM +0200, Diego Olivier Fernandez Pons wrote: > Bonjour, > > > You might try to code [...] > > My question wasn't correctly formulated. What I want is : > > #if defined DEBUGMODE > let f = function x -> ... [explicit partial application] > #else > let f = fun x y -> ... > #endif You can preprocess with cpp, or camlp4's pa_ifdef. See this example: http://pauillac.inria.fr/~aschmitt/cwn/2003.09.02.html#4 Rich. -- Richard Jones. http://www.annexia.org/ http://www.j-london.com/ Merjis Ltd. http://www.merjis.com/ - improving website return on investment "One serious obstacle to the adoption of good programming languages is the notion that everything has to be sacrificed for speed. In computer languages as in life, speed kills." -- Mike Vanier ------------------- 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