Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Calling a function with a self-defined type as argument
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Oleg <oleg_inconnu@m...>
Subject: Re: [Caml-list] Calling a function with a self-defined type as argument
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