#255: NSArray.new(["elem"]) segfaults
---------------------------------------+------------------------------------
Reporter: th...@… | Owner: lsansone...@…
Type: defect | Status: closed
Priority: major | Milestone: MacRuby 0.5
Component: MacRuby | Resolution: fixed
Keywords: NSArray constructor |
---------------------------------------+------------------------------------
Changes (by lsansone...@…):
* status: new => closed
* resolution: => fixed
* milestone: => MacRuby 0.5
Comment:
Doesn't seem to crash anymore with trunk.
{{{
$ ./miniruby -e 'NSArray.new(["elem"])'
can't modify frozen/immutable array (RuntimeError)
}}}
The exception is because we will firstly allocate an NSArray instance then
#initialize will try to modify it, and it fails since the object is
immutable. Not sure if it's meaningful to fix that.
--
Ticket URL: <http://www.macruby.org/trac/ticket/255#comment:3>
MacRuby <http://macruby.org/>
_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel