[MacRuby-devel] [MacRuby] #617: Reopening Symbol Appears to Cause auto malloc[16067]: error for object 0x1016090b0: auto_zone_set_associative_ref
MacRuby
ruby-noreply at macosforge.org
Wed Feb 17 12:07:11 PST 2010
#617: Reopening Symbol Appears to Cause auto malloc[16067]: error for object
0x1016090b0: auto_zone_set_associative_ref
-------------------------------+--------------------------------------------
Reporter: cwdinfo@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: blocker | Milestone:
Component: MacRuby | Keywords:
-------------------------------+--------------------------------------------
Comment(by cwdinfo@…):
This appears to be related to the fact that Symbol inherits from NSString,
which is immutable. A simple reduced case is:
{{{
class Symbol
def eq
@foo = 3
end
end
:zoo.eq
}}}
At this point, the object is changed, which appears not to be desirable in
the context of immutability, yet Ruby 1.9 allows it and many Ruby idioms
take advantage of it (e.g., DataMapper).
--
Ticket URL: <http://www.macruby.org/trac/ticket/617#comment:1>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list