From: nobu.nakada@... Date: 2003-07-28T22:05:34+09:00 Subject: [ruby-dev:20971] Re: constant definition in File::Constants なかだです。 At Mon, 28 Jul 2003 21:43:18 +0900, Nobuyoshi-Nakada wrote: > FileがFile::Constantsをincludeしなくなってますね。いつからだろ > う。 もとい。IOが、でした。 Index: file.c =================================================================== RCS file: /cvs/ruby/src/ruby/file.c,v retrieving revision 1.153 diff -u -2 -p -r1.153 file.c --- file.c 25 Jul 2003 05:36:47 -0000 1.153 +++ file.c 28 Jul 2003 13:02:45 -0000 @@ -2579,5 +2579,4 @@ rb_file_const(name, value) { rb_define_const(rb_mFConst, name, value); - rb_define_const(rb_cIO, name, value); } @@ -2920,4 +2919,5 @@ Init_File() rb_mFConst = rb_define_module_under(rb_cFile, "Constants"); + rb_include_module(rb_cIO, rb_mFConst); rb_file_const("LOCK_SH", INT2FIX(LOCK_SH)); rb_file_const("LOCK_EX", INT2FIX(LOCK_EX)); -- --- 僕の前にBugはない。 --- 僕の後ろにBugはできる。 中田 伸悦