From: micha <micha-1@fantasymail.de>
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 [thread overview]
Message-ID: <200808051346.12470.micha-1@fantasymail.de> (raw)
In-Reply-To: <74a4f4670808041132p757cb91aofd8d0d826dd081b4@mail.gmail.com>
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
next prev parent reply other threads:[~2008-08-05 11:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-04 18:32 Ben Aurel
2008-08-05 11:40 ` [Caml-list] " asmadeus77
2008-08-05 11:46 ` micha [this message]
2008-08-05 13:26 ` Peng Zang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200808051346.12470.micha-1@fantasymail.de \
--to=micha-1@fantasymail.de \
--cc=caml-list@yquem.inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox