problem on ire with lambda and variable
Reported by Panagiotis Skarvelis | March 16th, 2009 @ 03:13 AM
After a "specific" Labda the variable foo unbound.
# ire
Reia Interactive Shell (prerelease)
Running on Erlang (BEAM) emulator version 5.6.5 [source] [async-threads:0] [hipe] [kernel-poll:true]
>> foo=4
=> 4
>> foo
=> 4
>> f1 = fun(x, y) { x + y }
=> #<Lambda -expr/5-fun-3- (module: erl_eval arity: 2>
>> foo
=> 4
>> plus_two = fun(n) { n + 2 }
=> #<Lambda -expr/5-fun-2- (module: erl_eval arity: 1>
>> foo
exception error: variable '_foo_0' is unbound
>> foo
exception error: variable '_foo_0' is unbound
>> bar=1
=> 1
>> foo
=> 4
Comments and changes to this ticket
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Reia a dynamic scripting language for the Erlang virtual machine (BEAM)