#524: [FFI] can't convert Symbol into String --------------------------------+------------------------------------------- Reporter: conra...@… | Owner: lsansone...@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: --------------------------------+------------------------------------------- When I run the code on Snow Leopard r3174,
{{{ require 'ffi' module MyLib extend FFI::Library attach_function :puts, [ :string ], :int end MyLib.puts 'Hello boys using libc!' }}} I'm seeing the following message: On MacRuby version 0.5 (ruby 1.9.0) [universal-darwin10.0, x86_64]: {{{ $ macruby ffi-test.rb core:in `attach_function:': can't convert Symbol into String (TypeError) }}} On ruby 1.9.1p376 (2009-12-07 revision 26041) [i386-darwin10]: {{{ $ ruby ffi-test.rb ruby 1.9.1p376 (2009-12-07 revision 26041) [i386-darwin10] }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/524> MacRuby <http://macruby.org/> _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel