[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Re: Minor Change Proposal for Classes 'Object' and 'Method'

Yukihiro Matsumoto

1/23/2007 12:56:00 PM

Hi,

In message "Re: Minor Change Proposal for Classes 'Object' and 'Method'"
on Tue, 23 Jan 2007 20:54:51 +0900, dblack@wobblini.net writes:

|I think it's that I see this:
|
| a.x
|
|and this:
|
| m = a.method(:x)
| m.call
|
|as two different ways to achieve the goal of executing x with a as
|self. In the first, a receives the message "x". In the second -- as
|I see it -- a does not receive the message "x"; it's a different path,
|a non-message-receiving path, to the same goal.

Perhaps the message was sent to the object a for both cases. In the
former case, the message was interpreted as a command. In the latter
case, the message was a method selector.

matz.

1 Answer

dblack

1/23/2007 2:03:00 PM

0