caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* RE: [Caml-list] eval order and 'and'
@ 2002-09-11  5:05 Arturo Borquez
  2002-09-11  7:19 ` Chris Hecker
  2002-09-11  7:47 ` Sven LUTHER
  0 siblings, 2 replies; 6+ messages in thread
From: Arturo Borquez @ 2002-09-11  5:05 UTC (permalink / raw)
  To: Chris Hecker; +Cc: caml-list

Chris Hecker <checker@d6.com> wrote:

>
>Does "let a and b in" guarantee a is evaluated before b, like "let a in let 
>b in" does?
>
Sorry but I don't understand the purpose of your question.
If a and b are functions with 'related side effects' the secure
way should be the later ('let a in let b ..'), otherwise
the order of evaluation in the first case is irrelevant
as a and b are two unrelated functions (with no side effects),
or 'let a and b in ..' is the same as 'let b and a in ..' 

Regards.
-- 
Arturo Borquez


__________________________________________________________________
The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp 

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.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


^ permalink raw reply	[flat|nested] 6+ messages in thread
* [Caml-list] eval order and 'and'
@ 2002-09-11  1:21 Chris Hecker
  2002-09-11  7:30 ` malc
  0 siblings, 1 reply; 6+ messages in thread
From: Chris Hecker @ 2002-09-11  1:21 UTC (permalink / raw)
  To: caml-list


Does "let a and b in" guarantee a is evaluated before b, like "let a in let 
b in" does?

Chris

PS.  I don't think this is a FAQ, but it's basically impossible to 
construct a search that finds this specific question, so who knows!  ;)

-------------------
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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2002-09-11  8:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-11  5:05 [Caml-list] eval order and 'and' Arturo Borquez
2002-09-11  7:19 ` Chris Hecker
2002-09-11  7:47 ` Sven LUTHER
2002-09-11  8:32   ` Hendrik Tews
  -- strict thread matches above, loose matches on Subject: below --
2002-09-11  1:21 Chris Hecker
2002-09-11  7:30 ` malc

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).