From: "Ben Aurel" <ben.aurel@gmail.com>
To: caml-list@yquem.inria.fr
Subject: Error: This function is applied to too many arguments, maybe you forgot a `;'
Date: Sun, 3 Aug 2008 20:46:32 -0400 [thread overview]
Message-ID: <74a4f4670808031746pe6b1fbfx2be16927392a693f@mail.gmail.com> (raw)
hi
I try to make my first steps with Ocaml and I have some difficulties.
I know there is a second list for "Ocaml Beginners" but its running on
Yahoo and the membership confirmation takes a while ...
So let me ask you, what is wrong with this code
let rec fac n = if n > 1 then n * fac (n-1) else 1 ;;
print_int fac(6);;
No matter if I compile this with ocamlc or run the commands with
ocaml, I always get the error:
/////////////////////////////////////////////////////////////////
File "ifelse.ml", line 2, characters 0-9:
This function is applied to too many arguments,
maybe you forgot a `;'
///////////////////////////////////////////////////////////////////
What is the problem here? Adding an additional ; doesn't help of course.
thanks
ben
next reply other threads:[~2008-08-04 0:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-04 0:46 Ben Aurel [this message]
2008-08-05 12:11 ` [Caml-list] Error: This function is applied to too many arguments, maybe you forgot a `; ' Richard Jones
2008-08-05 13:29 ` Peng Zang
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=74a4f4670808031746pe6b1fbfx2be16927392a693f@mail.gmail.com \
--to=ben.aurel@gmail.com \
--cc=caml-list@yquem.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