Operator unary ! is not supported in 1.4 with --1.9 compatibility
-----------------------------------------------------------------

                 Key: JRUBY-4365
                 URL: http://jira.codehaus.org/browse/JRUBY-4365
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.4
         Environment: Windows 7 64bit
            Reporter: Alexandre Mutel
            Priority: Minor


It is possible to define the unary operator ! for a class under MRI 1.9.1 but 
under JRuby 1.4 with --1.9, the operator is not called

class MyClass
  def !
    puts "! #{self}"
  end
end
=> nil

x = MyClass.new
=> #<MyClass:0x13829d5>
!x
=> false                      # <== it should print "! #<MyClass:0x13829d5>"





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