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
Order of evaluation when constructing record values
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-08-14 (00:54)
From: Jon Harrop <jon@f...>
Subject: Re: [Caml-list] Re: Order of evaluation when constructing record values
On Saturday 11 August 2007 19:15:21 Jeff Meister wrote:
> I seem to have answered my own question by playing around. It appears
> that the order of evaluation is last-to-first and based on the order
> of the fields in the type declaration, not in the value construction.
> Oh well. I guess it's let-bindings for me.

Evaluation order is typically unspecified in OCaml and sometimes differs 
between the byte/native compilers.

-- 
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
OCaml for Scientists
http://www.ffconsultancy.com/products/ocaml_for_scientists/?e