Skip to content

two proc related bugs #39

@GoogleCodeExporter

Description

@GoogleCodeExporter
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 xue.yong...@gmail.com on 30 Jun 2007 at 5:48

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions