Re: Help with plugin concept
- Posted by Robert Craig <rds at RapidEuphoria.com> Feb 13, 2004
- 700 views
The trick where a Euphoria program modifies an include file just before including it, does not work with the translator or the binder, and in the next release it won't work with the interpreter either. We may eventually need some new language construct in this area, but currently you can easily convert Euphoria code to a .dll, and you can pass Euphoria data (atoms and sequences) to it, and get Euphoria data returned. The only problem is, as with all .dlls, you can't easily share your global variables. You'd have to define a kind of mini-API, that the .dll (plugin) authors would support. You can also, of course, run a separate Euphoria program, via system() etc., and communicate with it via files, or maybe even shared memory. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com