From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: ** X-Spam-Status: No, score=2.8 required=5.0 tests=DNS_FROM_RFC_POST,SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id F0B38BBAF for ; Mon, 4 Aug 2008 02:46:33 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ag0LAJ/ulUjRVdkbWGdsb2JhbACRATQBFgYFBxCXc4Nr X-IronPort-AV: E=Sophos;i="4.31,302,1215381600"; d="scan'208";a="13695039" Received: from mail-gx0-f27.google.com ([209.85.217.27]) by mail2-smtp-roc.national.inria.fr with ESMTP; 04 Aug 2008 02:46:33 +0200 Received: by gxk8 with SMTP id 8so2722273gxk.3 for ; Sun, 03 Aug 2008 17:46:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:mime-version:content-type:content-transfer-encoding :content-disposition:x-google-sender-auth; bh=FckTuBe7IgMXl4+unEovlbuh5KA+ca66MDjY386gz4Q=; b=CgKodJOXDyz2OYYsKHoooN4UxgplfnUOAPxawhf1puoLAAmby5sKPfA/63I9wFlSB3 aR7qRh/a+gaQv/uHV/lQIN7L2vB9o1dZCcajs1Muv/QWw/PTSyWoCGssIulwyecXktAk XwpvKCqqD7p6/cJckQX2QpRl2ZZAkBy1P1o3M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition:x-google-sender-auth; b=v+Vfz+X5NaGCiw4kHcGtszcURxjU/sMydET3cF15nz2RUvD7fFZYNpBHy4fvJbKeiV 99XONM9ZpDbi3qa1nwkN3Pt59Y52hFvwqoFg1pISg8jyOhmwVNI20eflnYwHfeI9qRJz nOza8HPFzwuMVahgo1o5tumBEVZvSZT0A8FYE= Received: by 10.100.4.1 with SMTP id 1mr3116952and.149.1217810792755; Sun, 03 Aug 2008 17:46:32 -0700 (PDT) Received: by 10.100.173.1 with HTTP; Sun, 3 Aug 2008 17:46:32 -0700 (PDT) Message-ID: <74a4f4670808031746pe6b1fbfx2be16927392a693f@mail.gmail.com> Date: Sun, 3 Aug 2008 20:46:32 -0400 From: "Ben Aurel" Sender: ben.jakbot@gmail.com To: caml-list@yquem.inria.fr Subject: Error: This function is applied to too many arguments, maybe you forgot a `;' MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: 626dd5af53d099e1 X-Spam: no; 0.00; ocaml:01 ocaml:01 ocamlc:01 beginners:01 rec:01 compile:01 int:01 let:03 let:03 applied:05 applied:05 problem:05 arguments:07 arguments:07 function:08 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