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=1.4 required=5.0 tests=SPF_NEUTRAL autolearn=disabled version=3.1.3 Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id AC4E7BC0B for ; Tue, 23 Jan 2007 19:50:55 +0100 (CET) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l0NIosHx005162 for ; Tue, 23 Jan 2007 19:50:55 +0100 Received: by ug-out-1314.google.com with SMTP id q2so1397105uge for ; Tue, 23 Jan 2007 10:50:54 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:mime-version:content-transfer-encoding:message-id:content-type:to:from:subject:date:x-mailer; b=rKCoUm9Pq0fnp+vKCYsqalVU3n8x7NTVM+lsNVAn2NEUb6IN0CwdAEGDASCgzO4U+P1KnX97S9mjyhGSJqpD0nWtRIr8zwZ+91rMvK6BPCFtnUy+YDe0NVx2SAkeHaZDZ/cNJevPPwh4iwCv++PwqOpFG77g0r6LvRwXZRwD95Y= Received: by 10.67.22.2 with SMTP id z2mr9013707ugi.1169578254483; Tue, 23 Jan 2007 10:50:54 -0800 (PST) Received: from ?192.168.1.3? ( [87.122.55.182]) by mx.google.com with ESMTP id 13sm6694500ugb.2007.01.23.10.50.53; Tue, 23 Jan 2007 10:50:54 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v752.3) Content-Transfer-Encoding: 7bit Message-Id: <3E3A2218-5AA0-445F-A37D-B12EF4A2F9CB@gmail.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: caml-list@yquem.inria.fr From: Lucas Holland Subject: Simple factorial Date: Tue, 23 Jan 2007 19:50:51 +0100 X-Mailer: Apple Mail (2.752.3) X-j-chkmail-Score: MSGID : 45B6590F.000 on discorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at discorde with ID 45B6590F.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; factorial:01 o'caml:01 factorial:01 lucas:98 rec:01 argument:02 checking:02 let:03 overflow:03 written:07 function:08 function:08 i've:12 i've:12 error:12 Hello, I've just started learning O'Caml. I've written a simple factorial function (no checking whether n is 1 etc.): let rec factorial n = n * factorial (n-1);; When I call this function with let's say 5 as an argument, I get an overflow error message. Any ideas? chell