[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: a bug

This page is part of the web mail archives of SRFI 71 from before July 7th, 2015. The new archives for SRFI 71 contain all messages, not just those from before July 7th, 2015.



Hello Joo ChurlSoo,

The order of evaluation of the expressions used to
initialize bindings in LET is explicitly left
unspecified in the Scheme standard, Section 4.2.2:

    "Semantics: The <init>s are evaluated in the
current environment (in some unspecified order), ..."

(Consider for example
http://www.schemers.org/Documents/Standards/R5RS/HTML/r5rs-Z-H-7.html#%25_sec_4.2.2)

This means your programs should not rely on a
particular ordering of the bindings. 

The difference becomes apparent in SRFI-LET because my
reference implementation uses this freedom to
recognize ordinary single-value bindings and collect
them into an ordinary LET.

Sebastian.


		
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs