English version
Accueil     Ŕ propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis ŕ jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml ŕ l'adresse ocaml.org.

Browse thread
Parameter evaluation order
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-08-26 (10:13)
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 

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"];;
- : unit list = [(); ()]

Dr Jon D Harrop, Flying Frog Consultancy Ltd.
Objective CAML for Scientists