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 DAA01464; Thu, 22 Aug 2002 03:42:50 +0200 (MET DST) 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 DAA01492 for ; Thu, 22 Aug 2002 03:42:49 +0200 (MET DST) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from www.duonix.com ([210.113.163.221]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g7M1gjn08424 for ; Thu, 22 Aug 2002 03:42:47 +0200 (MET DST) Received: from hama ([192.168.0.254]) by www.duonix.com (8.12.5/8.11.6) with SMTP id g7M1lnMp081641; Thu, 22 Aug 2002 10:47:49 +0900 (KST) (envelope-from shoh@duonix.com) X-Authentication-Warning: www.duonix.com: Host [192.168.0.254] claimed to be hama Message-ID: <002e01c2497d$46777a10$fe00a8c0@hama> From: "SooHyoung Oh" To: "Oliver Bandel" , References: Subject: Re: [Caml-list] Calling a function with a self-defined type as argument Date: Thu, 22 Aug 2002 10:43:11 +0900 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > > (* > let _ = x Line "h0oifdaji oi" ;; > This last one does not work: => "This function is applied to too many arguments" > "x" expects only one argument, but it has 2. > let _ = x Line( "reuruhjf" ) ;; > This last one does not work: => "This function is applied to too many arguments" > Same as the first one. In this example, () has no effect. In most cases, "a(b)" is the same meaning as "a b" in Ocaml. > But it works in this way: > let _ = x (Line "reuruhjf") ;; > > WHY? (why *only* that?) > "x" is applied to one argument. > At least the second example (with parantheses around the > Line's arguments) should work...?! > *) --- SooHyoung Oh tel: 02)583-8709, 042)861-8649 cell. phone: 011-453-4303 web: http://www.duonix.com ------------------- 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