[MacRuby-devel] macruby or macirb bug
Jordan Breeding
jordan.breeding at mac.com
Fri Nov 28 21:01:35 PST 2008
Doesn't arrayWithObjects: take a nil terminated list of objects?
Sent from my iPhone
On Nov 28, 2008, at 22:54, Tim Rand <timrandg at gmail.com> wrote:
> 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"]
>
>
>
>
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
More information about the MacRuby-devel
mailing list