Captures local to the block ?
-----------------------------
Key: JRUBY-1712
URL: http://jira.codehaus.org/browse/JRUBY-1712
Project: JRuby
Issue Type: Bug
Reporter: Marcin Mielżyński
Assignee: Thomas E Enebo
here is the test case:
block = lambda{ puts $1; "c" =~ /(c)/; p $1 }
"a".sub(/(a)/, &block)
p $1
block.call
p $1
MRI:
a
"c"
"a"
a
"c"
"c"
JRuby:
a
"c"
"a"
c
"c"
"a"
I might have screwed frame selection during last opts, but it looks that
captures are local to block frame instead of current method scope, which would
be another issue.
--
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