[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Overloading Array Subtraction operator

seebs

6/10/2007 4:38:00 PM

In message <1181491239.357509.233710@q66g2000hsg.googlegroups.com>, Yossef Mendelssohn writes:
>Is that so? Then why does this work?

Because all instances of the same string are indeed instances of the
same object.

-s

1 Answer

Sebastian Hungerecker

6/10/2007 5:15:00 PM

0

Peter Seebach wrote:
> Because all instances of the same string are indeed instances of the
> same object.

>> "bla".object_id=="bla".object_id
=> false

Or did I misunderstand what you're saying?


--
Ist so, weil ist so
Bleibt so, weil war so