ruby-changes:8590
From: matz <ko1@a...>
Date: Fri, 7 Nov 2008 07:18:54 +0900 (JST)
Subject: [ruby-changes:8590] Ruby:r20125 (trunk): * string.c (Init_String): remove Symbol#===.
matz 2008-11-07 07:18:34 +0900 (Fri, 07 Nov 2008) New Revision: 20125 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=20125 Log: * string.c (Init_String): remove Symbol#===. [ruby-dev:37026] Modified files: trunk/ChangeLog trunk/string.c Index: ChangeLog =================================================================== --- ChangeLog (revision 20124) +++ ChangeLog (revision 20125) @@ -3,6 +3,10 @@ * thread_pthread.c (thread_timer): uses pthread_cond_timedwait always instead of pthread_kill. +Fri Nov 7 06:58:59 2008 Yukihiro Matsumoto <matz@r...> + + * string.c (Init_String): remove Symbol#===. [ruby-dev:37026] + Fri Nov 7 04:02:22 2008 Nobuyoshi Nakada <nobu@r...> * thread.c (thread_timer): uses timedwait on cygwin. Index: string.c =================================================================== --- string.c (revision 20124) +++ string.c (revision 20125) @@ -6942,13 +6942,6 @@ } static VALUE -sym_eqq(VALUE sym, VALUE other) -{ - if (sym == other) return Qtrue; - return rb_str_equal(rb_sym_to_s(sym), other); -} - -static VALUE sym_aref(int argc, VALUE *argv, VALUE sym) { return rb_str_aref_m(argc, argv, rb_sym_to_s(sym)); @@ -7188,7 +7181,6 @@ rb_define_method(rb_cSymbol, "<=>", sym_cmp, 1); rb_define_method(rb_cSymbol, "casecmp", sym_casecmp, 1); rb_define_method(rb_cSymbol, "=~", sym_match, 1); - rb_define_method(rb_cSymbol, "===", sym_eqq, 1); rb_define_method(rb_cSymbol, "[]", sym_aref, -1); rb_define_method(rb_cSymbol, "slice", sym_aref, -1); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/