argument population of blocks broke in at least one case somewhere between 1.2
and 1.3
--------------------------------------------------------------------------------------
Key: JRUBY-3788
URL: http://jira.codehaus.org/browse/JRUBY-3788
Project: JRuby
Issue Type: Bug
Components: Interpreter
Affects Versions: JRuby 1.3.1
Reporter: Thomas E Enebo
Fix For: JRuby 1.4
This seems to only affect the interpreter, but I found a case where we are
doing the wrong thing (oh only in 1.8 mode as well):
{noformat}
class Foo
def two_args
yield 1,2
end
end
ret = []
Foo.new.two_args { |one, two, three| ret = [one, two, three] }
p ret
{noformat}
It should print [1,2,nil]. It prints [nil, nil, nil]. I happen to be working
in this area currently and I plan on fixing this along with this work.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email