We use aliases for core methods in many places MRI does not
-----------------------------------------------------------
Key: JRUBY-1409
URL: http://jira.codehaus.org/browse/JRUBY-1409
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Reporter: Charles Oliver Nutter
Fix For: JRuby 1.1.0
MRI generally doesn't use aliases for core class methods, with the following
exceptions:
{noformat}
rb_define_method(rb_cArray, "length", rb_ary_length, 0);
rb_define_alias(rb_cArray, "size", "length");
rb_define_alias(rb_cIO, "to_i", "fileno");
rb_define_method(rb_cIO, "fileno", rb_io_fileno, 0);
rb_define_module_function(rb_mProcGID, "grant_privilege",
p_gid_grant_privilege, 1);
rb_define_alias(rb_singleton_class(rb_mProcUID), "eid=", "grant_privilege");
rb_define_alias(rb_singleton_class(rb_mProcGID), "eid=", "grant_privilege");
{noformat}
We should provide aliases only for these methods, and all other aliase we
currently have should just be second bindings of the same method.
--
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