You could write the functions in rb and pass the addresses of those functions to your plugin, then the plugin could just call those function when it needs them.
AC On 21-Jun-07, at 4:22 PM, Theodore H. Smith wrote: > Hi people, > > I'd like to write one or two functions in my ElfData plugin, using RB > code. Seeing as RB is much easier to write certain things with, and > also gives just as fast results in certain cases. > > I've identified a few cases where some stuff would be just as fast > using RB code as C++ code. Mostly this is where my plugin does all > the hard work anyhow ;) as the RB code calls my ElfData code. > > So is this possible? Can I write a plugin partly in RB code? > > What I want to do, is add some kind of sort, split and join > functionality to my plugin. It's trivial to write in RB, but much > harder in C++. > > -- > http://elfdata.com/plugin/ > "String processing, done right" > > > _______________________________________________ > Unsubscribe or switch delivery mode: > <http://www.realsoftware.com/support/listmanager/> > > Search the archives: > <http://support.realsoftware.com/listarchives/lists.html> _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
