From: malc <av1474@comtv.ru>
To: caml-list@inria.fr
Subject: Optional arguments
Date: Sun, 9 Nov 2008 22:17:47 +0300 (MSK) [thread overview]
Message-ID: <Pine.LNX.4.64.0811092215570.8870@linmac.oyster.ru> (raw)
Objective Caml version 3.10.0
# let a i = let b ?(i=i mod 3) () = i in b ~i ();;
val a : int -> int = <fun>
# for i = 0 to 5 do print_int (a i); done;;
012345- : unit = ()
Is this something to be expected? Or perhaps something which calls
for an upgrade?
--
mailto:av1474@comtv.ru
next reply other threads:[~2008-11-09 19:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-09 19:17 malc [this message]
2008-11-09 19:51 ` [Caml-list] " David Teller
2008-11-10 20:52 ` malc
-- strict thread matches above, loose matches on Subject: below --
2001-02-08 12:50 Serguei Ouklonski
2001-02-09 1:19 ` Jacques Garrigue
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=Pine.LNX.4.64.0811092215570.8870@linmac.oyster.ru \
--to=av1474@comtv.ru \
--cc=caml-list@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