Version française
Home     About     Download     Resources     Contact us    
Browse thread
RE: [Caml-list] eval order and 'and'
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: artboreb@n...
Subject: RE: [Caml-list] eval order and 'and'
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