[MacRuby] #1305: MacRuby shared runtime kernel level method bug?

MacRuby ruby-noreply at macosforge.org
Thu May 26 21:09:52 PDT 2011


#1305: MacRuby shared runtime kernel level method bug?
-------------------------------------+--------------------------------------
 Reporter:  mattaimonetti@…          |       Owner:  lsansonetti@…        
     Type:  defect                   |      Status:  new                  
 Priority:  minor                    |   Milestone:  MacRuby 1.0          
Component:  MacRuby                  |    Keywords:                       
-------------------------------------+--------------------------------------
 [https://gist.github.com/994565] shows the problem.


 {{{
 #import <MacRuby/MacRuby.h>

 int main(void) {
   NSString *test = @"test";
   [[MacRuby sharedRuntime] evaluateString:@"def value=(val); @val = val;
 end; def value; @val; end"];
   [[MacRuby sharedRuntime] performRubySelector:sel_registerName("value=:")
 withArguments:test, nil];
   id result = [[MacRuby sharedRuntime] evaluateString:@"value"];
   NSLog(@"%@\n", result);
   return 0;
 }
 }}}


 Result is nil when it shouldn't.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/1305>
MacRuby <http://macruby.org/>



More information about the macruby-tickets mailing list