|
[
Permalink
| « Hide
]
Thomas E Enebo added a comment - 21/May/07 06:10 PM
Marcin's comparison script shows a few differences:
Fixnum#== maps to overridden implementation of equal (fix_equal equivalent) which by super.equal(...) calls RubyNumeric.equal(...) (MRI num_equal equivalent) - this is correct.
Kernel#==, Kernel#eql?, Kernel#equal? all map to MRI rb_obj_equal since Kernel#eql? semantics is used by hashes, only Kernel#== and Kernel#equal? can be considered the same (and these should actually map into java's equals method - if they don't do so yet...). I'll tackle the remaining equality methods posted by Tom. With the patch in
This is largely refactoring, and doesn't appear to have a direct effect on any user apps or code. So it's getting punted to post 1.0.
I'm not concerned about the
I think most of this may have been done already as part of Marcin's recent refactorings. Assigning to Marcin to weigh in on whether we need this bug open anymore.
Fixed remaining naming issues on trunk. The convention is now as follows:
== maps to Java method op_equal === maps to Java method op_eqq eql? maps to Java method eql_p equal? maps to Java method equal_p |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||