[Ironruby-core] Range#=== operator

Peter Bacon Darwin bacondarwin at googlemail.com
Thu Nov 8 16:49:59 EST 2007


Of course, you are quite right.  Thanks for that.

 

-----Original Message-----
From: ironruby-core-bounces at rubyforge.org
[mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Curt Hagenlocher
Sent: 08 November 2007 21:40
To: ironruby-core at rubyforge.org
Subject: Re: [Ironruby-core] Range#=== operator

 

On 11/8/07, Peter Bacon Darwin <HYPERLINK
"mailto:bacondarwin at googlemail.com"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

HYPERLINK "mailto:curt at hagenlocher.org"curt at hagenlocher.org

 

No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.503 / Virus Database: 269.15.24/1117 - Release Date: 07/11/2007
22:52


No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.15.24/1117 - Release Date: 07/11/2007
22:52
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20071108/5f63aed4/attachment-0001.html 


More information about the Ironruby-core mailing list