Hi guys,

I was trying to run the following code:

*class MyObj < DependencyObject
end

obj = MyObj.new*

Where DepenencyObject comes from the WPF stack (WindowsBase.dll). However
this fails on the *MyObj.new* line with strange error that wrong arguments
or types are passed to initialize method. After some digging I found that
DependencyObject have a private method Initialize which makes the problem.
Rewriting the code like this makes it work:

*class MyObj < DependencyObject
  def initialize
  end
end*

May be method resolution somehow get messed up.
Sample file attached.

Regards,
Stefan

Attachment: init_issues.rb
Description: Binary data

_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to