Projects
Home     Blog     Install     New Ticket     View Tickets     Browse Source

Ticket #120 (closed defect: fixed)

Opened 3 months ago

Last modified 3 months ago

TypeError exception when calling #send on a pure objc setter method

Reported by: lsansonetti@… Owned by: lsansonetti@…
Priority: blocker Milestone: MacRuby 0.3
Component: MacRuby Keywords:
Cc:

Description

$ ./miniruby -e "class X; attr_writer :foo; end; X.new.send('foo=', 42)"

$ ./miniruby -e "class X; attr_writer :foo; end; X.new.send('setFoo', 42)"
-e:1:in `send:': 42 is not a symbol (TypeError)
from -e:1:in `setFoo'
from -e:1:in `<main>'

$ ./miniruby -e "class X; attr_writer :foo; end; X.new.send('setFoo:', 42)"
-e:1:in `send:': 42 is not a symbol (TypeError)
	from -e:1:in `setFoo:'
	from -e:1:in `<main>'

Change History

Changed 3 months ago by lsansonetti@…

  • status changed from new to closed
  • resolution set to fixed

Fixed in r542/trunk.

Rich, could you revert the hotcocoa change?

Note: See TracTickets for help on using tickets.