Browse thread
Parameter evaluation order
[
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: | -- (:) |
| From: | Jon Harrop <jon@f...> |
| Subject: | Re: [Caml-list] Re: Parameter evaluation order |
On Friday 26 August 2005 10:53, Christophe Raffalli wrote: > This looks strange, because the semicolumn is used both to specify order > evaluation left-to-right in sequence and right-to-left in record. I haven't checked but it is probably undefined, rather than right-to-left in records. Semicolons are used in many places in OCaml's grammar. Would you expect the members of a list literal to be evaluated left-to-right, for example? # [print_endline "1"; print_endline "2"];; 2 1 - : unit list = [(); ()] -- Dr Jon D Harrop, Flying Frog Consultancy Ltd. Objective CAML for Scientists http://www.ffconsultancy.com/products/ocaml_for_scientists