Evaluation of constant happens before rhs of assignment (different to mri)
--------------------------------------------------------------------------
Key: JRUBY-4925
URL: http://jira.codehaus.org/browse/JRUBY-4925
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.5.1, JRuby 1.4
Environment: linux, ubuntu 9.10, debian
Reporter: Nick Griffiths
Assignee: Thomas E Enebo
Priority: Minor
The following fails on jruby with an uninitialized constant error, but works
fine on mri.
echo "A::B = begin
module A; end
"yay?"
end
puts A::B
" | jruby
Easily worked around, just thought I'd point it out.
--
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