Subject: [ruby-ffi] ffi_lib and symbol/string usage? |
From: Jon |
Date: 11/15/09 3:52 PM |
To: ruby-ffi@googlegroups.com |
While doing a quick test of the novice win32 example from http://wiki.github.com/ffi/ffi/windows-examples across jruby and mri 1.8 and 1.9, using ffi_lib :kernel32 works as expected on 1.9 and fails on 1.8 due to 1.8's "File.basename" used in "map_library_name" on line 61 of http://github.com/ffi/ffi/blob/master/lib/ffi/ffi.rb not accepting Symbol's. I've updated my examples on the wiki to use only String's, but am wondering if FFI core should be agnostic for the ffi_lib arg? I personally prefer the Symbol style but I don't really have strong feelings other than "keep lib loads fast." Jon