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

* eval_method.c (rb_add_method): fix check for warning when

Object#initialize is redefined. (same as 1.8)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
mame 2008-05-13 15:49:38 +00:00
parent 1072cb65c9
commit 4bb3fa6982
3 changed files with 11 additions and 6 deletions

View file

@ -1,3 +1,8 @@
Wed May 14 00:45:58 2008 Yusuke Endoh <mame@tsg.ne.jp>
* eval_method.c (rb_add_method): fix check for warning when
Object#initialize is redefined. (same as 1.8)
Tue May 13 23:32:44 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* enum.c (enum_yield): use rb_yield_values2.

View file

@ -153,9 +153,9 @@ rb_add_method(VALUE klass, ID mid, NODE * node, int noex)
rb_warning("method redefined; discarding old %s", rb_id2name(mid));
}
}
if (klass == rb_cObject && node && node->nd_mid == init) {
rb_warn("redefining Object#initialize may cause infinite loop");
}
}
if (klass == rb_cObject && node && mid == init) {
rb_warn("redefining Object#initialize may cause infinite loop");
}
if (mid == object_id || mid == __send__) {

View file

@ -1,7 +1,7 @@
#define RUBY_VERSION "1.9.0"
#define RUBY_RELEASE_DATE "2008-05-13"
#define RUBY_RELEASE_DATE "2008-05-14"
#define RUBY_VERSION_CODE 190
#define RUBY_RELEASE_CODE 20080513
#define RUBY_RELEASE_CODE 20080514
#define RUBY_PATCHLEVEL 0
#define RUBY_VERSION_MAJOR 1
@ -9,7 +9,7 @@
#define RUBY_VERSION_TEENY 0
#define RUBY_RELEASE_YEAR 2008
#define RUBY_RELEASE_MONTH 5
#define RUBY_RELEASE_DAY 13
#define RUBY_RELEASE_DAY 14
#ifdef RUBY_EXTERN
RUBY_EXTERN const char ruby_version[];