[MacRuby-devel] macruby or macirb bug

Tim Rand timrandg at gmail.com
Fri Nov 28 20:54:15 PST 2008


In macirb the following code crashes

>> array = NSMutableArray.arrayWithObjects([1,2])
=> [[1, 2], 1511869]
>> array
=> [[1, 2], 1511869]
>> array.length
=> 2
>> array2 = NSMutableArray.arrayWithObjects([1, 2, "this"])
Killed

Using the more ruby friendly way of assigning a variable to an array works.

>> array = [1,2,"this"]
=>[1, 2, "this"]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20081128/f0614e55/attachment-0001.html>


More information about the MacRuby-devel mailing list