Version française
Home     About     Download     Resources     Contact us    
Browse thread
newbie: how to call a function with multiple parameters?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: micha <micha-1@f...>
Subject: Re: [Caml-list] newbie: how to call a function with multiple parameters?
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