Bugs item #6413, was opened at 2006-10-30 20:44
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=6413&group_id=426

Category: Language / Runtime / Core Libraries
Group: 1.8.x
Status: Closed
Resolution: Rejected
Priority: 3
Submitted By: David Wheeler (theory)
Assigned to: Shyouhei Urabe (shyouhei)
Summary: Some Time Constructors Fail to Call initialize

Initial Comment:
Some of the Time class constructor methods fail to call the initialize method in a subclass. For example, for this simple subclass:

class MyTime < Time
  def initialize
    puts "Hello world!"
  end
end

When I test it with the constructor methods, none of these outputs the print statement:

* at
* parse
* httpdate
* rfc2822
* rfc822
* local


----------------------------------------------------------------------

>Comment By: David Wheeler (theory)
Date: 2007-05-29 16:47

Message:
Hrm. The rejection makes subclassing problematic. May I ask why?

Thanks!

David

----------------------------------------------------------------------

Comment By: Shyouhei Urabe (shyouhei)
Date: 2007-05-29 16:20

Message:
rejected by matz: [ruby-core:9361]

----------------------------------------------------------------------

Comment By: Ryan Davis (zenspider)
Date: 2006-11-01 23:11

Message:
This almost entirely goes through time_new_internal.

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=6413&group_id=426