#598: EXC_BAD_ACCESS when *splatting arguments in method call
----------------------------+-----------------------------------------------
Reporter: m...@… | Owner: lsansone...@…
Type: defect | Status: closed
Priority: major | Milestone:
Component: MacRuby | Resolution: invalid
Keywords: |
----------------------------+-----------------------------------------------
Changes (by lsansone...@…):
* status: new => closed
* resolution: => invalid
Comment:
This seems to work in trunk.
{{{
$ cat t.rb
class FileList < Array
def addFiles(files)
clear
push(*files)
files
end
end
o=FileList.new
p o.addFiles(['a','b','c','d','e'])
$ ./miniruby t.rb
["a", "b", "c", "d", "e"]
}}}
I have no idea what could have been wrong for the reporter. The GDB output
does not contain anything meaningful too (no backtrace). Closing.
--
Ticket URL: <http://www.macruby.org/trac/ticket/598#comment:2>
MacRuby <http://macruby.org/>
_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel