[Yarv-devel] for is unsupported ?

gabriele renzi surrender_it at yahoo.it
Mon Jun 13 18:00:50 EDT 2005


Hi people,


I just noticed that for.. in does not work:
ary = [ 1,2 ]
ary.each do |b|
    p 'hello'
end

prints 
 "hello"
 "hello"
but

ary = [ 1,2 ]
for b in ary
    p 'hello'
end

prints nothing. 
Is this something that got broken in latest revisions
or it did not ever worked before?

PS
(yes I know #each is better than for :)

icq #69488917

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the Yarv-devel mailing list