Re: [MacRuby-devel] Super not passing init: through to NSObject correctly?

2009-10-05 Thread Laurent Sansonetti
Thanks for the report, I added your snippet in our test suite. At a glance it looks like an infinite loop in the dispatcher. Definitely a bug :) Laurent On Oct 5, 2009, at 6:37 PM, Michael Shapiro wrote: Hi all, I searched a few months of the list archives and trac, but wasn't able to

Re: [MacRuby-devel] Super not passing init: through to NSObject correctly?

2009-10-05 Thread Conrad Taylor
What should be the exact output? In Ruby 1.9.1, I see the following output: $ ruby test.rb A B C D Note: When class.new is called allocate method is called. Then the object's initialize method is called and the instance is returned to the caller. $ macruby test.rb HasInit A HasInit

Re: [MacRuby-devel] Super not passing init: through to NSObject correctly?

2009-10-05 Thread Laurent Sansonetti
On Oct 5, 2009, at 8:01 PM, Conrad Taylor wrote: What should be the exact output? In Ruby 1.9.1, I see the following output: $ ruby test.rb A B C D [snip] #init is actually a NSObject thing. MacRuby's default initializer calls it. The mainstream Ruby doesn't, which explains your