[macruby-changes] [5013] MacRuby/trunk/eval.c

source_changes at macosforge.org source_changes at macosforge.org
Fri Dec 10 14:33:40 PST 2010


Revision: 5013
          http://trac.macosforge.org/projects/ruby/changeset/5013
Author:   lsansonetti at apple.com
Date:     2010-12-10 14:33:37 -0800 (Fri, 10 Dec 2010)
Log Message:
-----------
Module.nesting: return an empty array instead of nil in case the top object isn't a module

Modified Paths:
--------------
    MacRuby/trunk/eval.c

Modified: MacRuby/trunk/eval.c
===================================================================
--- MacRuby/trunk/eval.c	2010-12-10 22:30:16 UTC (rev 5012)
+++ MacRuby/trunk/eval.c	2010-12-10 22:33:37 UTC (rev 5013)
@@ -239,7 +239,7 @@
 	    return rb_vm_module_nesting(top);
 
 	default:
-	    return Qnil;
+	    return rb_ary_new();
     }
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20101210/aa46e854/attachment.html>


More information about the macruby-changes mailing list