You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1.
require 'test2'
x=1
$A = proc {x=2}
#def f; $A.call; end
g
print x
2.
def f
a = Proc.new {return 1} # replace Proc.new with proc, the result is
different!
a.call
print 'xxx'
end
f
Original issue reported on code.google.com by [email protected] on 30 Jun 2007 at 5:48
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 30 Jun 2007 at 5:48The text was updated successfully, but these errors were encountered: