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:
parent
a3a6ba9584
commit
2e0e02d358
3 changed files with 5 additions and 7 deletions
|
@ -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.
|
||||
|
|
2
object.c
2
object.c
|
@ -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);
|
||||
|
|
6
parse.y
6
parse.y
|
@ -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, "<<"},
|
||||
|
|
Loading…
Add table
Reference in a new issue