From: "T. Onoma" Date: 2003-11-29T05:39:33+09:00 Subject: Re: Controlled block variables On Friday 28 November 2003 08:21 pm, Hal Fulton wrote: > One thing that comes to my mind is this: > > The () notation seems to make sense for a variable that happens > to refer to a proc. But what if you stick parens on a variable > that isn't a proc? This seems like a syntax error, but it would > have to be detected at runtime. > > foo = proc {...} > 1.upto(5) do |i| > foo = "Haha!!" if i==4 > foo() # What happens when i is 4? > end yes, weird errors. that's a big minus. -t0