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.1 required=5.0 tests=AWL,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 mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 9E028BC02 for ; Tue, 5 Aug 2008 13:29:20 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ar0BALTolkjRVYT4jmdsb2JhbACRAT4BAQEBCQMKBw8Fmh6EOA X-IronPort-AV: E=Sophos;i="4.31,306,1215381600"; d="scan'208";a="27944949" Received: from an-out-0708.google.com ([209.85.132.248]) by mail4-smtp-sop.national.inria.fr with ESMTP; 04 Aug 2008 20:32:37 +0200 Received: by an-out-0708.google.com with SMTP id b2so324631ana.102 for ; Mon, 04 Aug 2008 11:32:36 -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=toNYsIhcYKOKqHgDTxWcEEO4OpkSOuojmAquDgmG3VQ=; b=PHa4OQXtIIJg14ZIJ/1P/lORwR4oJarqIJ+0UCvXJoTIL4PQCVgIoxnda10K/hW7qB GCk5QKfx4hXf3DyVA779olZS2Up/9ABLAj6m2LwXod73pRXgE4bi18KGtR29nU1+YWGq y+fDy2mp1ZU68k2myM4/h5rg021GFfLLzP3bA= 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=VBG8igAE7vwVL137om9g+7O6A9mJ0qFOJqRRTNFn14c1uXxTeOlNEsOtde8sWPonGX sJ4ss499ZLKUf1KTdDiFZVdzxk4+0XrbGlni5izKFelL9SwcQE/k50eZJH6rNbV+SFyx qLk8aEa4Gy/ja5mSaQlk9tTRixNbjhXwd+B1A= Received: by 10.100.173.18 with SMTP id v18mr13881ane.122.1217874756483; Mon, 04 Aug 2008 11:32:36 -0700 (PDT) Received: by 10.100.173.1 with HTTP; Mon, 4 Aug 2008 11:32:36 -0700 (PDT) Message-ID: <74a4f4670808041132p757cb91aofd8d0d826dd081b4@mail.gmail.com> Date: Mon, 4 Aug 2008 14:32:36 -0400 From: "Ben Aurel" Sender: ben.jakbot@gmail.com To: caml-list@yquem.inria.fr Subject: newbie: how to call a function with multiple parameters? MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: 5d2b356f47e222db X-Spam: no; 0.00; printf:01 printf:01 semicolon:01 compile:01 newbie:02 parameters:03 parameters:03 let:03 logic:04 logic:04 problem:05 function:08 wrong:10 maybe:10 struggling:88 hi yeah - the question is low, but I-m struggling on different frontiers /////////////// print_logic.ml /////////////////////////////// ```````````````````````````````````````` 1 let print_logic a b = 2 Printf.printf "a and b is %B\n" (a && b); 3 Printf.printf "a or b is %B\n" (a || b); 4 Printf.printf "not a is %B\n" (not a) (* Q1 *) 5 6 print_logic(true, false);; (* Q2 *) ``````````````````````````````````````` Problem: the code doesn't compile and I don't find any help on the web. Questions: (* Q1 *): Somehow I don't get the concept with ";" and ";;". On line 4 do I need to end the statement with semicolon double-semicolon or nothing? (* Q2 *): How can I pass those parameters? Maybe there is something that's else wrong. thanks ben