[macruby-changes] [1296] MacRuby/branches/experimental/vm_eval.c
source_changes at macosforge.org
source_changes at macosforge.org
Thu Apr 2 22:44:17 PDT 2009
Revision: 1296
http://trac.macosforge.org/projects/ruby/changeset/1296
Author: lsansonetti at apple.com
Date: 2009-04-02 22:44:16 -0700 (Thu, 02 Apr 2009)
Log Message:
-----------
fixed the return value of #loop (in case of break)
Modified Paths:
--------------
MacRuby/branches/experimental/vm_eval.c
Modified: MacRuby/branches/experimental/vm_eval.c
===================================================================
--- MacRuby/branches/experimental/vm_eval.c 2009-04-03 05:31:02 UTC (rev 1295)
+++ MacRuby/branches/experimental/vm_eval.c 2009-04-03 05:44:16 UTC (rev 1296)
@@ -269,8 +269,7 @@
static VALUE
rb_f_loop(VALUE klass, SEL sel)
{
- rb_rescue2(loop_i, (VALUE)0, 0, 0, rb_eStopIteration, (VALUE)0);
- return Qnil; /* dummy */
+ return rb_rescue2(loop_i, (VALUE)0, 0, 0, rb_eStopIteration, (VALUE)0);
}
VALUE
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090402/cd505f30/attachment.html>
More information about the macruby-changes
mailing list