caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Johann Spies <jspies@maties.sun.ac.za>
To: ocaml <caml-list@inria.fr>
Subject: Re: [Caml-list] This expression is not a function, it cannot be applied
Date: 10 Sep 2001 11:39:45 +0200	[thread overview]
Message-ID: <874rqbs7tq.fsf@bywoner.sun.ac.za> (raw)
In-Reply-To: Mike Leary's message of "Sun, 9 Sep 2001 04:38:24 -0700"

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


      reply	other threads:[~2001-09-10  9:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-09 11:11 Johann Spies
2001-09-09 11:25 ` Remi VANICAT
2001-09-09 11:38 ` Mike Leary
2001-09-10  9:39   ` Johann Spies [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874rqbs7tq.fsf@bywoner.sun.ac.za \
    --to=jspies@maties.sun.ac.za \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).