[Ironruby-core] Range#=== operator
Charles Oliver Nutter
charles.nutter at sun.com
Wed Nov 14 12:10:54 EST 2007
Peter Bacon Darwin wrote:
> Would it be fair to follow this as a general rule: when coding Ruby methods
> in C#, if you are calling code that is exposed as a method or operator in a
> Ruby class or module then invoke it via a DynamicSite, if it is purely
> private code to the C# method then call it directly?
This rule won't hold for all cases, since frequently Ruby's of two minds
on whether you can override some method X used by method Y such that Y
will see it. Sometimes Y will do a full dynamic dispatch and sometimes
it will do a direct call, even to the same piece of code that's bound to
external (i.e. in-script) calls to X.
More information about the Ironruby-core