[MacRuby] #632: performSelector behaves oddly.
#632: performSelector behaves oddly. -----------------------------+---------------------------------------------- Reporter: rob@… | Owner: lsansonetti@… Type: defect | Status: new Priority: minor | Milestone: Component: MacRuby | Keywords: -----------------------------+---------------------------------------------- Hi -- performSelector behaves a little oddly when you try to use it on the built ins of Ruby. {{{ macruby-nightly > [1,2,3].performSelector(:pop) ArgumentError: wrong number of arguments (-2055090267 for 1) from /Users/robertgleeson/Projects/Ruby/sinatra-effigy/(irb):1:in `<main>' }}} [1,2,3].send(:pop) works fine. In another case, performSelector() caused a seg fault but I can't remember what I did :-X I'm only starting to learn Objective C and came across this when I wanted to see how Objective C methods worked from within MacRuby. -- Ticket URL: <http://www.macruby.org/trac/ticket/632> MacRuby <http://macruby.org/>
#632: performSelector behaves oddly. -----------------------------+---------------------------------------------- Reporter: rob@… | Owner: lsansonetti@… Type: defect | Status: new Priority: minor | Milestone: Component: MacRuby | Keywords: -----------------------------+---------------------------------------------- Comment(by lsansonetti@…): This is because #pop is implemented in C, and these functions do not conform to the objective-c calling ABI, yet. -- Ticket URL: <http://www.macruby.org/trac/ticket/632#comment:1> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby