[Ironruby-core] Range#=== operator

Curt Hagenlocher curt at hagenlocher.org
Thu Nov 8 16:40:22 EST 2007

On 11/8/07, Peter Bacon Darwin <bacondarwin at googlemail.com> wrote:
>  One other question though:  How do you decide whether to use dynamic
> sites to trigger code rather than calling code directly when in coding in
> C#.  For instance, why does Protocols.Compare invoke _CompareSharedSite
> rather than call a C# function directly?  Sorry if I am being dumb.
Even builtins like the String or Range classes can have their comparison
functions overridden by user code.  So you really need to perform the
comparison "in Ruby".

Curt Hagenlocher
curt at hagenlocher.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20071108/e75b8fed/attachment.html 

More information about the Ironruby-core mailing list