From: Pierre Weis <Pierre.Weis@inria.fr>
To: malc <malc@pulsesoft.com>
Date: Thu, 12 Oct 2000 15:29:02 +0200 (MET DST) [thread overview]
Message-ID: <20001012132902.bp42Vau9JNFx2fJyntvPk-J8rrJ7qlfwt0PBDJ2mIMU@z> (raw)
> On Thu, 12 Oct 2000, Pierre Weis wrote:
>
> > [...]
> > > > As I mentioned earlier, when teaching, it's nice for
> > > > a language to be simple and uniform. Explaining to
> > > > a student why:
> > > >
> > > > let x = input() in
> > > > let y = input() in
> > > > (x,y)
> > > >
> > > > is not equivalent to:
> > > >
> > > > (input(), input())
> > > >
> > > I wonder if former is guaranteed to be equivalent to:
> > > let x = input ()
> > > and y = input () in
> > > (x, y)?
> > >
> > > --
> > > mailto:malc@pulsesoft.com
> >
> > Hi,
> >
> > Thank you for your interest for the Caml mailing list.
> >
> > Unfortunately, I don't understand your message; I suspect there is a
> > misspelling in it; are you sure your message is correct ?
> >
> > I haven't bounce it to the Caml users. I would like you to
> > double-check it before!
> >
> > If you want you can send be a new and corrected message I will be glad
> > to send it to the rest of the Caml user.
> Uh. Though one, spell check went without probs, so it must be semantic
> problem, ok. What i wanted to know is whether in:
> let exp1 and exp2 and exp3
> exp1 exp2 exp3 will be evaluated one by one in the order they are present
> in the code (being equal to let exp1 in let exp2 in let exp3).
>
> --
> mailto:malc@pulsesoft.com
Oups! I didn't notice the and!
The answer to your question is no. In let x = e1 and y = e2 the order
of evaluation between e1 and e2 is not specified, whereas it is
specified for let .. in let .. in. Hence the two programs are not
equivalent.
So, would you like me to send your original question to the list ?
(Sorry for the misunderstanding)
Best regards,
Pierre Weis
INRIA, Projet Cristal, Pierre.Weis@inria.fr, http://cristal.inria.fr/~weis/
</quote>
Looks like it didnt made it into the list.
--
mailto:malc@pulsesoft.com
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
reply other threads:[~2000-10-12 13:29 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20001012132902.bp42Vau9JNFx2fJyntvPk-J8rrJ7qlfwt0PBDJ2mIMU@z \
--to=pierre.weis@inria.fr \
--cc=malc@pulsesoft.com \
/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