Issue #5012 has been updated by Nobuyoshi Nakada.

Status changed from Open to Assigned
Assignee set to Motohiro KOSAKI


----------------------------------------
Bug #5012: Time??????????????????????????????????????????
http://redmine.ruby-lang.org/issues/5012

Author: Kazuki Tsujimoto
Status: Assigned
Priority: Normal
Assignee: Motohiro KOSAKI
Category: lib
Target version: 1.9.3
ruby -v: ruby 1.9.3dev (2011-07-10 trunk 32482) [x86_64-linux]


=begin
辻???????

Time#getlocal????????????????????Time????????????????
??????????????????????????????????????????????

 t0 = Time.now
 class <<t0; end
 
 t1 = t0.getlocal
 
 def t0.m
   0
 end
 
 p t0.m # => 0
 p t1.m # => 0

以?????????????????????????????????

 diff --git a/time.c b/time.c
 index 5dbf9b2..eb49ef2 100644
 --- a/time.c
 +++ b/time.c
 @@ -3426,7 +3426,7 @@ time_init_copy(VALUE copy, VALUE time)
  static VALUE
  time_dup(VALUE time)
  {
 -    VALUE dup = time_s_alloc(CLASS_OF(time));
 +    VALUE dup = time_s_alloc(rb_obj_class(time));
      time_init_copy(dup, time);
      return dup;
  }
=end



-- 
http://redmine.ruby-lang.org