1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* parse.y (op_tbl): remove duplication to avoid symbol aliases.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2007-12-18 05:50:37 +00:00
parent a3a6ba9584
commit 2e0e02d358
3 changed files with 5 additions and 7 deletions

View file

@ -1,3 +1,7 @@
Tue Dec 18 14:45:25 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
* parse.y (op_tbl): remove duplication to avoid symbol aliases.
Tue Dec 18 14:39:05 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
* string.c (str_nth): need not to raise out-of-range exception.

View file

@ -2348,7 +2348,7 @@ Init_Object(void)
rb_define_alloc_func(rb_cBasicObject, rb_class_allocate_instance);
rb_define_method(rb_cBasicObject, "==", rb_obj_equal, 1);
rb_define_method(rb_cBasicObject, "equal?", rb_obj_equal, 1);
rb_define_method(rb_cBasicObject, "!@", rb_obj_not, 0);
rb_define_method(rb_cBasicObject, "!", rb_obj_not, 0);
rb_define_method(rb_cBasicObject, "!=", rb_obj_not_equal, 1);
rb_define_private_method(rb_cBasicObject, "singleton_method_added", rb_obj_dummy, 1);

View file

@ -8583,8 +8583,6 @@ static const struct {
{tPOW, "**"},
{tUPLUS, "+@"},
{tUMINUS, "-@"},
{tUPLUS, "+(unary)"},
{tUMINUS, "-(unary)"},
{'|', "|"},
{'^', "^"},
{'&', "&"},
@ -8600,11 +8598,7 @@ static const struct {
{tMATCH, "=~"},
{tNMATCH, "!~"},
{'~', "~"},
{'~', "~(unary)"},
{'~', "~@"},
{'!', "!"},
{'!', "!(unary)"},
{'!', "!@"},
{tAREF, "[]"},
{tASET, "[]="},
{tLSHFT, "<<"},