[macruby-changes] [MacRuby/MacRuby] dcd258: fixed break, next and redo with ensure block, fixe...
noreply at github.com
noreply at github.com
Wed May 4 05:19:29 PDT 2011
Branch: refs/heads/master
Home: https://github.com/MacRuby/MacRuby
Commit: dcd258b4dfc63a4ba4b952e8c7633dec00484fa5
https://github.com/MacRuby/MacRuby/commit/dcd258b4dfc63a4ba4b952e8c7633dec00484fa5
Author: Kouji Takao <kouji at takao7.net>
Date: 2011-05-04 (Wed, 04 May 2011)
Changed paths:
M compiler.cpp
M compiler.h
M test_vm/block.rb
M test_vm/dispatch.rb
Log Message:
-----------
fixed break, next and redo with ensure block, fixed codes below.
1)
1.times { begin; break; ensure; p 42; end }
2)
i=0; while i<1; begin; break; ensure; p 42; end; end
3)
i=0; while true; begin; break if i>0; i=1; redo; ensure; p 42; end; end
4)
def f(&proc) p :ok; end; f(&nil)
More information about the macruby-changes
mailing list