#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/>