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 DAA01643; Thu, 22 Aug 2002 03:50:02 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id DAA01502 for ; Thu, 22 Aug 2002 03:50:01 +0200 (MET DST) Received: from dewberry.cc.columbia.edu (dewberry.cc.columbia.edu [128.59.59.68]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g7M1nxn08474 for ; Thu, 22 Aug 2002 03:50:00 +0200 (MET DST) Received: from there (tw304h3.cpmc.columbia.edu [156.111.84.180]) by dewberry.cc.columbia.edu (8.9.3/8.9.3) with SMTP id VAA14728; Wed, 21 Aug 2002 21:49:49 -0400 (EDT) Message-Id: <200208220149.VAA14728@dewberry.cc.columbia.edu> Content-Type: text/plain; charset="iso-8859-1" From: Oleg To: Oliver Bandel , caml-list@inria.fr Subject: Re: [Caml-list] Calling a function with a self-defined type as argument Date: Wed, 21 Aug 2002 21:50:56 -0400 X-Mailer: KMail [version 1.3.2] References: In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Wednesday 21 August 2002 09:11 pm, Oliver Bandel wrote: ... because > (* >    let _ = x Line "h0oifdaji oi" ;; >    This last one does not work: => "This function is applied to too many > arguments" x is applied to 2 arguments >    let _ = x Line( "reuruhjf" ) ;; >    This last one does not work: => "This function is applied to too many > arguments" still 2 (no difference whatsoever) >    But it works in this way: >    let _ = x (Line "reuruhjf") ;; Now x is applied to 1 argument. >    WHY?         (why *only* that?) >   >    At least the second example (with parantheses around the >    Line's arguments) should work...?!   > *) ------------------- 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