[MacRuby-devel] [MacRuby] #255: NSArray.new(["elem"]) segfaults

MacRuby ruby-noreply at macosforge.org
Tue May 19 13:37:18 PDT 2009


#255: NSArray.new(["elem"]) segfaults
---------------------------------------+------------------------------------
 Reporter:  thilo@…                    |       Owner:  lsansonetti@…        
     Type:  defect                     |      Status:  new                  
 Priority:  major                      |   Milestone:                       
Component:  MacRuby                    |    Keywords:  NSArray constructor  
---------------------------------------+------------------------------------

Old description:

> {{{
> NSArray.new(["elem"])
> }}}
>
> causes a segmentation fault with macruby 0.4

New description:

 {{{
 NSArray.new(["elem"])
 }}}

 causes a segmentation fault with macruby 0.4

--

Comment(by mattaimonetti@…):

 {{{
 my_array = Array.new(['elem'])
 }}

 or even better:

 {{{
 my_array = ['eleme']
 }}

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/255#comment:1>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list