On 12/05/2009, at 1:49 PM, Tomas Matousek wrote:
Several cases need to be distinguished in Class#new:
1) The class defines or inherits an initializer (“initialize”
method) that is not the default Object#initializer.
a. The initializer is a Ruby method (written in Ruby).
=> Use a default constructor to create the instance and invoke the
initializer on it. If the class derives from CLR class with no
default constructor an exception is thrown.
I may be missing other context, but what happens if I want to do this:
public class ClrClass
{
public ClrClass(string param1) { ... }
// no other constructors
}
class RubyClass < ClrClass
def initialize(param1)
super(param1) # or just super should also pass the param1 if my
memory is correct...
end
end
?????
_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core