#394: Unrecognized runtime type _NSRange=II
-------------------------------+--------------------------------------------
 Reporter:  cwdi...@…          |        Owner:  lsansone...@…        
     Type:  defect             |       Status:  reopened             
 Priority:  blocker            |    Milestone:  MacRuby 0.5          
Component:  MacRuby            |   Resolution:                       
 Keywords:                     |  
-------------------------------+--------------------------------------------

Comment(by lsansone...@…):

 Looks like yet another ABI issue. llvm-gcc compiles the code as:

 {{{
 define internal %struct.Foo* @"\01-[Foo
 
control:textView:completions:forPartialWordRange:indexOfSelectedItem:]"(%struct.Foo*
 %self, %struct.objc_selector* %_cmd, %struct.NSControl* %control,
 %struct.NSTextView* %textView, %struct.Foo* %words, %struct.NSRange* byval
 %charRange, i64* %index) ssp {
 }}}

 In this case, the NSRange structure should be passed 'byval'. MacRuby
 doesn't (since sizeof(NSRange) is <= 128bit) but in this case the number
 of arguments seem to trigger something.

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

_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Reply via email to