Class.new { p eval("self", binding) }
-------------------------------------

                 Key: JRUBY-5624
                 URL: http://jira.codehaus.org/browse/JRUBY-5624
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.6
         Environment: jruby 1.6.0 (ruby 1.9.2 patchlevel 136) (2011-03-21 
df7415c) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_22) [darwin-x86_64-java]
            Reporter: James M. Lawrence



  % jruby -e 'Class.new { p eval("self", binding) }'
  #<Class:0x104ed9f47>

  % jruby --1.9 -e 'Class.new { p eval("self", binding) }'
  main

  % jruby --1.9 -e 'Class.new { eval("define_method", binding) }'
  NameError: undefined local variable or method `define_method' for main:Object



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