Projects

Ticket #632 (closed defect: fixed)

Opened 2 years ago

Last modified 14 months ago

performSelector behaves oddly.

Reported by: rob@… Owned by: lsansonetti@…
Priority: minor Milestone: MacRuby 0.8
Component: MacRuby Keywords: #reduction
Cc:

Description

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.

Change History

Changed 22 months ago by lsansonetti@…

This is because #pop is implemented in C, and these functions do not conform to the objective-c calling ABI, yet.

Changed 14 months ago by mattaimonetti@…

  • keywords #reduction added

The problem is still happening.

Changed 14 months ago by lsansonetti@…

  • milestone set to MacRuby 1.0

Same problem as #664 I suspect.

Changed 14 months ago by lsansonetti@…

  • status changed from new to closed
  • resolution set to fixed
  • milestone changed from MacRuby 1.0 to MacRuby 0.8

Should be fixed in r4987.

Note: See TracTickets for help on using tickets.