Retry argument evaluation incompatibility
-----------------------------------------

                 Key: JRUBY-1522
                 URL: http://jira.codehaus.org/browse/JRUBY-1522
             Project: JRuby
          Issue Type: Bug
          Components: Compiler, Interpreter
    Affects Versions: JRuby 1.1b1
         Environment: Mac OS X 10.5 w/ JRuby 1.1.b1
            Reporter: Brian Mitchell
            Priority: Minor


The following ruby code will implement a simple loop structure using retry and 
a block:

def my_while(cond)
  return unless cond
  yield
  retry
end

In MRI 1.8.6, this will successfully execute something like this:

i = 0
my_while(i < 10) { i += 1 }

On JRuby 1.1b1, it will loop, but not re-evaluate the condition argument.

-- 
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

Reply via email to