diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | object.c | 2 | ||||
-rw-r--r-- | parse.y | 6 |
3 files changed, 5 insertions, 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. @@ -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); @@ -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, "<<"}, |