caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* newbie: how to call a function with multiple parameters?
@ 2008-08-04 18:32 Ben Aurel
  2008-08-05 11:40 ` [Caml-list] " asmadeus77
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Ben Aurel @ 2008-08-04 18:32 UTC (permalink / raw)
  To: caml-list

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-08-05 13:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-04 18:32 newbie: how to call a function with multiple parameters? Ben Aurel
2008-08-05 11:40 ` [Caml-list] " asmadeus77
2008-08-05 11:46 ` micha
2008-08-05 13:26 ` Peng Zang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).