[MacRuby] #585: FFI , attach_variable missing?
#585: FFI , attach_variable missing? -----------------------------+---------------------------------------------- Reporter: rob@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: -----------------------------+---------------------------------------------- Hi, I was really happy to hear that FFI shipped with MacRuby but then I ended up a little disappointed :-P {{{ require 'ffi' extend FFI::Library method(:attach_function).owner # => TopLevel method(:attach_variable).owner # => NoMethodError }}} I guess this could be intentional? I'm not sure. For my case I should be okay because I'm trying to read from a constant I know the value of, but just throwin' it out there. -- Ticket URL: <http://www.macruby.org/trac/ticket/585> MacRuby <http://macruby.org/>
#585: FFI , attach_variable missing? -----------------------------+---------------------------------------------- Reporter: rob@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: -----------------------------+---------------------------------------------- Comment(by rob@…): Every time I forget my macruby version, sorry: {{{ robert-gleesons-iMac:rb_sandbox robertgleeson$ macruby -v MacRuby version 0.5 (ruby 1.9.0) [universal-darwin10.0, x86_64] }}} I also noticed a tiny little difference between MRI, too. method(:attach_function).owner returns FFI::Library, while MacRuby returns 'TopLevel'. -- Ticket URL: <http://www.macruby.org/trac/ticket/585#comment:1> MacRuby <http://macruby.org/>
#585: FFI , attach_variable missing? -----------------------------+---------------------------------------------- Reporter: rob@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: -----------------------------+---------------------------------------------- Comment(by mattaimonetti@…): The FFI implementation is very basic and as far as I know, there is no really-short-term plans to improve it unless volunteers step up to help. -- Ticket URL: <http://www.macruby.org/trac/ticket/585#comment:2> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby