From: Henrik Schmidt Date: 2007-05-27T02:05:20+09:00 Subject: Re: local variables vs. methods Hakusa@gmail.com wrote: >> Basically, I'm looking for the same thing here. What possible use can >> there be for this feature? I don't get it. > > Thought of something: > I still don't really know how to use a proc or anything like that, but > it seems to me ... > > proc = Proc.new # How you initialize a proc makes me think that a proc > is just another type of a variable. It is. > > So you could overload your method with a variable so that a proc which > does a different thing is called. If you can see why overloading with > a method could be good, you can see why this could be good. Well, if you would like proc to do something different then just assign a different Proc to it. Also, I don't think you can overload proc with a method. The variable always wins. > But note that I'm not all that experienced either, so I could be > entirely wrong. But I still think that someday, it just might be > helpful. I can't think of any way, contrived or otherwise, that would make this helpful, but I'm fairly inexperienced myself. Let's say I accept your argument. Why not issue a warning?