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 OAA12290; Thu, 22 Aug 2002 14:55:05 +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 OAA12164 for ; Thu, 22 Aug 2002 14:55:04 +0200 (MET DST) Received: from hirsch.in-berlin.de (hirsch.in-berlin.de [192.109.42.6]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g7MCt3X20686 for ; Thu, 22 Aug 2002 14:55:03 +0200 (MET DST) Received: from hirsch.in-berlin.de (localhost [127.0.0.1]) by hirsch.in-berlin.de (8.12.1/8.12.1/Debian -2) with ESMTP id g7MCt2W0010041 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NOT); Thu, 22 Aug 2002 14:55:02 +0200 Received: (from uucp@localhost) by hirsch.in-berlin.de (8.12.1/8.12.1/Debian -2) with UUCP id g7MCt10U010039; Thu, 22 Aug 2002 14:55:01 +0200 X-Envelope-From: oliver@first.in-berlin.de X-Envelope-To: caml-list@inria.fr Received: from localhost (oliver@localhost) by first.in-berlin.de (8.7.6/8.7.3) with SMTP id OAA00778; Thu, 22 Aug 2002 14:40:58 +0200 Date: Thu, 22 Aug 2002 14:40:58 +0200 (MET DST) From: Oliver Bandel To: Oleg cc: caml-list@inria.fr Subject: Re: [Caml-list] Calling a function with a self-defined type as argument In-Reply-To: <200208220149.VAA14728@dewberry.cc.columbia.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Wed, 21 Aug 2002, Oleg wrote: > 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 the Line ("text")-argument is only complete as a Line(), if Line() has a higher priority than the function-call. I have *one* argument, which is complete if given EMPTY, and complete if given Line ("argument"). Shouldn't be types have a higher priority than calls in this case? Is Line() in this example handled like an ordinary function? That is, what I think that it is a littlebid crazy. I use the type-definition to put things together nad use them as one type, but then it is handled like a puzzle, before it is put together. But I want here a complete picture, and I thought the compiler would put the parts together: How to put them together is clear: I have said it him in the type-declaration. Ciao, Oliver ------------------- 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