> How then would be an implementation of calling native functions? > > > It could be an extended libcall accepting a VIM list to pass it's elements as > arguments.It could be an extension to VIM Script allowing it to declare > prototypes for native functions. > > > Conversion between VIM types and libffi types is necessary. > > > In this embryonary stage (I know nothing about VIM internals), > any suggestions? criticisms? > > Regards > --- > Francisco Lopes
Changed my mind a bit after some looking around at VIM sources. Now I'm thinking of implementing this by passing around values between VIM and Native functions only through proper VIM internal types (see typval_T). This allows for light calls without overhead of type conversion, which is in itself a complex thing to do generically. Since internal VIM types are going to be exposed in the C/C++ plugin, it should be able to deal with then, so a library to deal with VIM internal types in a sane way is necessary. -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
