Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] This expression is not a function, it cannot be applied
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Johann Spies <jspies@m...>
Subject: Re: [Caml-list] This expression is not a function, it cannot be applied
Mike Leary <leary@nwlink.com> writes:

> 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. 

That was my problem.  I have used the parentheses as I have used them
in Python and Pascal.  Thanks to you and Remi pointing this out to
me.


Johann
-- 
Johann Spies          Telefoon: 021-808 4036
Informasietegnologie, Universiteit van Stellenbosch

     "Draw near to God and he will draw near to you.  
      Cleanse your hands, you sinners; and purify your  
      hearts, you double minded."       James 4:8 
-------------------
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