diff --git a/ChangeLog b/ChangeLog index 35f1b59f04..e0ad59657f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Mon Dec 16 16:35:28 2002 Yukihiro Matsumoto + + * stable version 1.6.8 release candidate. + Mon Dec 16 15:53:20 2002 Nobuyoshi Nakada * parse.y (nextc): get rid of overrun. (pointed out by akr @@ -5,6 +9,10 @@ Mon Dec 16 15:53:20 2002 Nobuyoshi Nakada * eval.c (rb_eval): untangled ruby_dyna_vars. [ruby-talk:59035] +Mon Dec 16 08:03:47 2002 Yukihiro Matsumoto + + * dir.c (dir_set_pos): Dir#pos= should return the new position. + Sat Dec 14 02:03:51 2002 WATANABE Hirofumi * ext/dbm/extconf.rb (db_check): support for GNU dbm 1.8.3. @@ -16,6 +24,11 @@ Fri Dec 13 23:39:09 2002 WATANABE Hirofumi * ext/dbm/dbm.c: ditto. +Fri Dec 13 17:15:49 2002 Yukihiro Matsumoto + + * variable.c (generic_ivar_get): should always warn for + uninitialized instance variables. + Thu Dec 12 16:26:31 2002 Nobuyoshi Nakada * marshal.c (r_object0): singleton class instance can't be loaded. @@ -34,10 +47,6 @@ Wed Dec 11 20:48:03 2002 Akinori MUSHA * lib/getoptlong.rb (GetoptLong::Error): provide a common ancestor for GetoptLong error classes (RCR#129). -Mon Dec 9 15:13:14 2002 Yukihiro Matsumoto - - * stable version 1.6.8 release candidate. - Fri Dec 6 14:13:59 2002 Yukihiro Matsumoto * numeric.c (num_cmp): define Numeric#<=>, remove Numeric#==. diff --git a/dir.c b/dir.c index 6e250e6b3c..b1a8489e03 100644 --- a/dir.c +++ b/dir.c @@ -373,7 +373,7 @@ dir_set_pos(dir, pos) VALUE dir, pos; { dir_seek(dir, pos); - return dir; + return pos; } static VALUE diff --git a/variable.c b/variable.c index 95c03cd3fc..34789f479c 100644 --- a/variable.c +++ b/variable.c @@ -782,11 +782,15 @@ generic_ivar_get(obj, id) st_table *tbl; VALUE val; - if (!generic_iv_tbl) return Qnil; - if (!st_lookup(generic_iv_tbl, obj, &tbl)) return Qnil; - if (st_lookup(tbl, id, &val)) { - return val; + if (generic_iv_tbl) { + if (st_lookup(generic_iv_tbl, obj, &tbl)) { + if (st_lookup(tbl, id, &val)) { + return val; + } + } } + + rb_warning("instance variable %s not initialized", rb_id2name(id)); return Qnil; }