[macruby-changes] [3497] MacRuby/trunk/object.c

source_changes at macosforge.org source_changes at macosforge.org
Thu Feb 11 18:39:57 PST 2010


Revision: 3497
          http://trac.macosforge.org/projects/ruby/changeset/3497
Author:   lsansonetti at apple.com
Date:     2010-02-11 18:39:56 -0800 (Thu, 11 Feb 2010)
Log Message:
-----------
inspect message should always start by a #

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

Modified: MacRuby/trunk/object.c
===================================================================
--- MacRuby/trunk/object.c	2010-02-12 02:02:26 UTC (rev 3496)
+++ MacRuby/trunk/object.c	2010-02-12 02:39:56 UTC (rev 3497)
@@ -502,7 +502,7 @@
 
         if (has_ivar) {
             const char *c = rb_obj_classname(obj);
-            VALUE str = rb_sprintf("<%s:%p", c, (void*)obj);
+            VALUE str = rb_sprintf("#<%s:%p", c, (void*)obj);
             return rb_exec_recursive(inspect_obj, obj, str);
         }
     }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100211/370ab9c5/attachment.html>


More information about the macruby-changes mailing list