Re: Including Files

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

Matt Lewis wrote:
> 
> cklester wrote:
> > 
> > Matt Lewis wrote:
> > 
> > > The issue is that you're asking to be able to execute code during parsing,
> > > which is not how euphoria works (2.5 and later, anyway).  I agree,
> > > however,
> > > that your simple example is exactly the same.  So I'd ask you why you
> > > would
> > > want to do it that way?
> > 
> > Because I want users who don't know the internals to use an API to write
> > plug-ins for my app. These plug-ins will be written in Euphoria and most
> > likely will not be compiled into a dll, ever. At least, not by me! :)
> > 
> > > You might do better with a preprocessor for the conditional include
> > > situation.
> > 
> > Maybe, but I'm leery of leaving a pure Euphoria environment. That is, I tend
> > to like to avoid kludges, to stay within the boundaries of the standards,
> > and a preprocessor seems kludgey.
> 
> So how were you proposing that your users include their plugins into your
> app?  Are they going to manually modify your code to add their file?  You
> could have a setup app that configured the plugins to act as the preprocessor.
> A user could run it, and it would modify a section of your code where you 
> include the plugins.  Then the user runs the app.  The setup could even be
> from within your app (assuming that makes sense for the UI of whatever you're
> doing) and the user has to restart for the plugin to work (lot's of things
> do this--see Firefox).
> 
> If this doesn't sound good, maybe some more detail on what you're doing would
> help.
> 
> Matt

Hasn't anyone made Eu-in-Eu into an embeddable script engine yet?
Seems to me, this is one of the few ways in which it can really be useful.


Chris Bensler
~ The difference between ordinary and extraordinary is that little extra ~
http://empire.iwireweb.com - Empire for Euphoria

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

Search



Quick Links

User menu

Not signed in.

Misc Menu