From: Robert Peirce Date: 2004-03-05T10:39:33+09:00 Subject: Re: More alias problems --Apple-Mail-10--788161854 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed On Mar 4, 2004, at 8:03 PM, Mehr, Assaph (Assaph) wrote: > Ruby aliases are just making an object respond to a different name > with an existing method; not expanded like shell aliases. > > If I understand correctly when the parser sees: 2 + 5 > It actually performs: 2.+ 5 > i.e. send the '+' method to the FixNum object for 2, with a parameter > of 5. Okay, but why doesn't it do the same when it sees 2 plus 5? 2.plus(5) and 2.plus 5 both work but 2 plus 5 does not. I'm not saying it should; I'm just wondering why it doesn't. I don't really understand what is going on when you use aliases. --Apple-Mail-10--788161854--