Re: Eval Script

new topic     » goto parent     » topic index » view thread      » older message » newer message

cklester wrote:
> 
> The thing is with scripting or plug-ins, I expect those things to modify data
> in the current program. For instance, if I've got a music player and I provide
> an interface for filtering, I expect that plug-in to be able to modify the
> stream of bits representing the music. The same for a graphics program. If I
> have an image and I want to run it through a plug-in filter, how would that
> program interact with the plug-in so that the internal data- the graphic- is
> modified by the plug-in?
> 

> 
> + Other ways...?
> 

If you use ooeu, you can use eval().  It won't protect you from machine 
crashes, but it shouldn't crash for normal euphoria errors.  A safer way
would be to use euscript, and wrap some routines to allow an api to change
internal application data.  Again, you wouldn't be safe from machine crashes
(unless you disallowed any calls that might cause them), but you should be
safe from normal errors.

I've had some thoughts about how to make ooeu embeddable.  I haven't figured
out everything, but I think that most of the work is probably done, now that
I've got an eval() that works.

Matt Lewis

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu