[Ironruby-core] Range#=== operator

Charles Oliver Nutter charles.nutter at sun.com
Wed Nov 14 18:22:16 EST 2007

Charles Oliver Nutter wrote:
> 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?
>> Pete
> 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.

Pardon the duplication; the other mail must have gotten delayed...

- Charlie

More information about the Ironruby-core mailing list