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 NAA22623; Sun, 9 Sep 2001 13:39:04 +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 NAA22907 for ; Sun, 9 Sep 2001 13:39:03 +0200 (MET DST) Received: from smtp.nwlink.com (smtp.nwlink.com [209.20.130.57]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f89BcwP08282 for ; Sun, 9 Sep 2001 13:39:02 +0200 (MET DST) Received: from ip178.usw22.rb1.bel.nwlink.com (ip178.usw22.rb1.bel.nwlink.com [207.202.195.178]) by smtp.nwlink.com (8.9.3/8.9.1) with SMTP id EAA19488 for ; Sun, 9 Sep 2001 04:36:58 -0700 (PDT) Received: (qmail 30670 invoked by uid 500); 9 Sep 2001 11:38:24 -0000 Date: Sun, 9 Sep 2001 04:38:24 -0700 From: Mike Leary To: Johann Spies Cc: ocaml Subject: Re: [Caml-list] This expression is not a function, it cannot be applied Message-ID: <20010909043824.J30316@ip178.usw22.rb1.bel.nwlink.com> References: <871ylgk4ag.fsf@adept.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <871ylgk4ag.fsf@adept.co.za>; from jhspies@adept.co.za on Sun, Sep 09, 2001 at 01:11:03PM +0200 Organization: is a poor substitute for less junk Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk I'll take a stab at it... Parentheses in OCaml aren't used like they are in function calls in C or Perl; in OCaml they cause what's in them to be evaluated, as if you were merely grouping expressions. Then the druk_ry function gets applied to the value of the expression in the parentheses, but since that expression... well, isn't an expression, 'cause maand isn't a function, that doesn't happen. Function application happens w/o the parentheses. So, I think you want: druk_ry maand hoofsom rente afbetaal; ------------------- 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