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


_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

Reply via email to