Projects
Home     Blog     Install     New Ticket     View Tickets     Browse Source

Ticket #117 (closed defect: fixed)

Opened 3 months ago

Last modified 3 months ago

super in overriden #new does not call #initialize

Reported by: lsansonetti@… Owned by: lsansonetti@…
Priority: blocker Milestone: MacRuby 0.3
Component: MacRuby Keywords:
Cc:

Description

class X
  def self.new(x); super; end
  def initialize(x); p x; end
end
X.new(42) # does not print 42

Clearly it's because the #new that calls #initialize is added on X when it's created and is not a method of the superclass NSObject.

Change History

Changed 3 months ago by lsansonetti@…

  • status changed from new to closed
  • resolution set to fixed

Fixed in r543/trunk.

Note: See TracTickets for help on using tickets.