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=0.8 required=5.0 tests=AWL,SPF_FAIL 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 5F663BBAF for ; Tue, 5 Aug 2008 13:46:34 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhsDABval0jVpUAUlGdsb2JhbACKc4ZFAQEBAQkFCAcPBZw0 X-IronPort-AV: E=Sophos;i="4.31,310,1215381600"; d="scan'208";a="27960911" Received: from mail.gmx.net ([213.165.64.20]) by mail4-smtp-sop.national.inria.fr with SMTP; 05 Aug 2008 13:46:34 +0200 Received: (qmail invoked by alias); 05 Aug 2008 11:46:32 -0000 Received: from p57B1E88A.dip.t-dialin.net (EHLO pc21a.localnet) [87.177.232.138] by mail.gmx.net (mp063) with SMTP; 05 Aug 2008 13:46:32 +0200 X-Authenticated: #20477425 X-Provags-ID: V01U2FsdGVkX18bK2ZyV1Qb2+hYPwglGdPhGG0KyrIH5jyVgi5pux 26RFBcuz6IUB1+ From: micha To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] newbie: how to call a function with multiple parameters? Date: Tue, 5 Aug 2008 13:46:11 +0200 User-Agent: KMail/1.10.0 (Linux/2.6.25-1.slh.2-sidux-amd64; KDE/4.1.0; x86_64; ; ) References: <74a4f4670808041132p757cb91aofd8d0d826dd081b4@mail.gmail.com> In-Reply-To: <74a4f4670808041132p757cb91aofd8d0d826dd081b4@mail.gmail.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200808051346.12470.micha-1@fantasymail.de> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.6899999999999999 X-Spam: no; 0.00; semicolon:01 semicolon:01 allways:01 printf:01 wrote:01 caml-list:01 functions:01 newbie:02 objects:02 parameters:03 parameters:03 logic:04 logic:04 types:05 definition:07 On Monday 04 August 2008 20:32:36 Ben Aurel wrote: > hi > yeah - the question is low, but I-m struggling on different frontiers > > 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? the double semicolon ends the definition of types / functions / objects... the single semicolon ends a statement. So to end the definition of print_logic you need the double semicolon in your example. There are cases where you can omit the double semicolon, I write them allways, for visual aid ( and I can search for them in my editor). > (* Q2 *): How can I pass those parameters? the same way as to printf, without delimiters: print_logic true false Michael