caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Mike Leary <leary@nwlink.com>
To: Johann Spies <jhspies@adept.co.za>
Cc: ocaml <caml-list@inria.fr>
Subject: Re: [Caml-list] This expression is not a function, it cannot be applied
Date: Sun, 9 Sep 2001 04:38:24 -0700	[thread overview]
Message-ID: <20010909043824.J30316@ip178.usw22.rb1.bel.nwlink.com> (raw)
In-Reply-To: <871ylgk4ag.fsf@adept.co.za>; from jhspies@adept.co.za on Sun, Sep 09, 2001 at 01:11:03PM +0200

I'll take a stab at it...

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.  Then the druk_ry function gets applied to the
value of the expression in the parentheses, but since that expression...
well, isn't an expression, 'cause maand isn't a function, that doesn't
happen.   Function application happens w/o the parentheses.  So, I think
you want:

druk_ry maand hoofsom rente afbetaal;

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


  parent reply	other threads:[~2001-09-09 11: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 [this message]
2001-09-10  9:39   ` Johann Spies

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=20010909043824.J30316@ip178.usw22.rb1.bel.nwlink.com \
    --to=leary@nwlink.com \
    --cc=caml-list@inria.fr \
    --cc=jhspies@adept.co.za \
    /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).