[MacRuby-devel] [MacRuby] #370: Inconsistency between macruby and ruby in a simple class
MacRuby
ruby-noreply at macosforge.org
Sun Oct 11 12:48:40 PDT 2009
#370: Inconsistency between macruby and ruby in a simple class
-----------------------------------+----------------------------------------
Reporter: kfowler@… | Owner: lsansonetti@…
Type: defect | Status: closed
Priority: major | Milestone: MacRuby 0.5
Component: MacRuby | Resolution: fixed
Keywords: |
-----------------------------------+----------------------------------------
Comment(by lsansonetti@…):
Indeed, there seems to be a problem in #inspect when the receiver has at
least one instance variable:
{{{
$ ./miniruby -e "class Foo; def initialize; @foo=42; end; end; p
Foo.new.inspect"
"##-<Foo:0x200025d20 @foo=42>"
$ ruby19 -e "class Foo; def initialize; @foo=42; end; end; p
Foo.new.inspect"
"#<Foo:0x0000010086a3c0 @foo=42>"
}}}
Could you open a new ticket about this?
--
Ticket URL: <http://www.macruby.org/trac/ticket/370#comment:7>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list