[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2008-11-09 (19:17) |
From: | malc <av1474@c...> |
Subject: | Optional arguments |
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