caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jon Harrop <jon@ffconsultancy.com>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Re: Order of evaluation when constructing record values
Date: Sat, 11 Aug 2007 23:13:59 +0100	[thread overview]
Message-ID: <200708112313.59849.jon@ffconsultancy.com> (raw)
In-Reply-To: <6806cf750708111115w3c3170abj3a4096ed95376222@mail.gmail.com>

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


  reply	other threads:[~2007-08-14  0:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-11 17:56 Jeff Meister
2007-08-11 18:15 ` Jeff Meister
2007-08-11 22:13   ` Jon Harrop [this message]
2007-08-12  8:25   ` [Caml-list] " Till Varoquaux
2007-08-12  9:12 ` [Caml-list] " David Allsopp
2007-08-13  0:25 ` 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=200708112313.59849.jon@ffconsultancy.com \
    --to=jon@ffconsultancy.com \
    --cc=caml-list@yquem.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;
as well as URLs for NNTP newsgroup(s).