[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Re: class << self

Yukihiro Matsumoto

10/7/2008 5:11:00 PM

Hi,

In message "Re: class << self"
on Wed, 8 Oct 2008 01:53:08 +0900, "Patrick Doyle" <wpdster@gmail.com> writes:

|Would it be fair to say that 99% of the time there is no difference between
|the definitions of A#a, A#b, and A#c?

Yes.

|Would it be fair to say that 100% of the time there is absolutely no
|difference between A#a and A#b?

They go through different code in the interpreter, but their intention
is same, so I think it's fair to say they are 100% compatible, when we
can ignore look-up difference between self and constant A.

|Is it fair to say that the 1% of the time that there's a difference between
|A#a and A#c is for constant lookup?

Same above.

matz.