[macruby-changes] [1292] MacRuby/branches/experimental/roxor.cpp
source_changes at macosforge.org
source_changes at macosforge.org
Thu Apr 2 22:12:07 PDT 2009
Revision: 1292
http://trac.macosforge.org/projects/ruby/changeset/1292
Author: lsansonetti at apple.com
Date: 2009-04-02 22:12:06 -0700 (Thu, 02 Apr 2009)
Log Message:
-----------
fixed defined?(::Constant)
Modified Paths:
--------------
MacRuby/branches/experimental/roxor.cpp
Modified: MacRuby/branches/experimental/roxor.cpp
===================================================================
--- MacRuby/branches/experimental/roxor.cpp 2009-04-03 04:16:09 UTC (rev 1291)
+++ MacRuby/branches/experimental/roxor.cpp 2009-04-03 05:12:06 UTC (rev 1292)
@@ -1219,7 +1219,10 @@
break;
case NODE_COLON2:
- what2 = compile_node(node->nd_head);
+ case NODE_COLON3:
+ what2 = nd_type(node) == NODE_COLON2
+ ? compile_node(node->nd_head)
+ : ConstantInt::get(RubyObjTy, (long)rb_cObject);
if (rb_is_const_id(node->nd_mid)) {
type = DEFINED_CONST;
what1 = (VALUE)node->nd_mid;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090402/5a54531a/attachment-0001.html>
More information about the macruby-changes
mailing list