From: rak rok Date: 2006-08-25T08:52:15+09:00 Subject: Re: do not understand this closure ------=_Part_110410_9979885.1156463534255 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline > a = 5 > a() This would fail just like a.call() would fail. def say > puts "hello" > end > > say = proc { puts "goodbye" } > > say() # hello or goodbye? I would say this would be similar to redefining a method, where the latest definition takes precedence. -rr- Cheers, > Hal > > ------=_Part_110410_9979885.1156463534255--