ruby-changes:2797
From: ko1@a...
Date: 18 Dec 2007 14:51:17 +0900
Subject: [ruby-changes:2797] matz - Ruby:r14288 (trunk): * parse.y (op_tbl): remove duplication to avoid symbol aliases.
matz 2007-12-18 14:50:37 +0900 (Tue, 18 Dec 2007)
New Revision: 14288
Modified files:
trunk/ChangeLog
trunk/object.c
trunk/parse.y
Log:
* parse.y (op_tbl): remove duplication to avoid symbol aliases.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/parse.y?r1=14288&r2=14287
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14288&r2=14287
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/object.c?r1=14288&r2=14287
Index: ChangeLog
===================================================================
--- ChangeLog (revision 14287)
+++ ChangeLog (revision 14288)
@@ -1,3 +1,7 @@
+Tue Dec 18 14:45:25 2007 Yukihiro Matsumoto <matz@r...>
+
+ * parse.y (op_tbl): remove duplication to avoid symbol aliases.
+
Tue Dec 18 14:39:05 2007 Yukihiro Matsumoto <matz@r...>
* string.c (str_nth): need not to raise out-of-range exception.
Index: object.c
===================================================================
--- object.c (revision 14287)
+++ object.c (revision 14288)
@@ -2348,7 +2348,7 @@
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);
Index: parse.y
===================================================================
--- parse.y (revision 14287)
+++ parse.y (revision 14288)
@@ -8583,8 +8583,6 @@
{tPOW, "**"},
{tUPLUS, "+@"},
{tUMINUS, "-@"},
- {tUPLUS, "+(unary)"},
- {tUMINUS, "-(unary)"},
{'|', "|"},
{'^', "^"},
{'&', "&"},
@@ -8600,11 +8598,7 @@
{tMATCH, "=~"},
{tNMATCH, "!~"},
{'~', "~"},
- {'~', "~(unary)"},
- {'~', "~@"},
{'!', "!"},
- {'!', "!(unary)"},
- {'!', "!@"},
{tAREF, "[]"},
{tASET, "[]="},
{tLSHFT, "<<"},
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml