Skip to content
Prev 351088 / 398502 Next

Feature or bug?

On 21 May 2015, at 16:26 , Bert Gunter <gunter.berton at gene.com> wrote:

            
Berwin is right, or rather: There are two issues. The "input" argument to server() is evaluated when first used. The difference between the two examples is whether this happens before or after update(), and that is the effect of lazy evaluation. The fact that it in the first case the value is unchanged by the update is due to scoping: Once evaluate "input" becomes a local variable  an is unchanged by assignment to the global variable.

-pd