RE: Dynamic includes

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

jbrown105 at speedymail.org wrote:
> 
> 
> On Tue, Jun 24, 2003 at 06:21:47PM +0000, Al Getz wrote:
> <snip matheval stuff>
> > 
> > Hello again Matt,
> > 
> > I didnt mean to imply that your evaluator didnt bind or anything
> > like that, i was just stating that mine doesnt bind because
> > it uses dynamic includes.
> > Would be nice if binding could handle that too smile
> > 
> > Take care for now,
> > Al
> > 
> 
> For binding, dynamic includes are not impossible. I am not sure, but it 
> would
> not be difficult for the interpreter to add support for include when in 
> binded
> mode. The "include filename" part would have to be cleartext in the 
> binded file
> tho.
> 
> Obviously, this won't work for a translated program (short of putting
> the interpreter into the translated program ... but the overhead for 
> that
> is clearly not worth it).
> 
> Another approach is this (example using dynamic includes depending on 
> platforms):
> 
> Run the file on the platform you intend to bind, but set it up so that 
> the
> files created dynamicly are NOT deleted. (I.e. use 
> 'set_delete_dynamic(0)'
> or something.)
> 
> Then after it is run, set up the program code to not write out the 
> dynamic
> files (i.e. use 'do_write_dynamic(0)' or somesuch) and then bind it.
> 
> Repeat for each platform you intend to bind for. This sort of thing is
> tedious but doable, and it is also a usable method for the translator as 
> well.
> 
> jbrown
> 
> -- 
>  /"\  ASCII ribbon              | http://www.geocities.com/jbrown1050/
>  \ /  campain against           | Linux User:190064
>   X   HTML in e-mail and        | Linux Machine:84163
>  /*\  news, and unneeded MIME   | http://verify.stanford.edu/evote.html
> 
> 

Hello again jbrown,

I guess what i had in mind was a way the interpreter could
use an include that was written during run time, that wasnt 
already a part of the bound exe.
I guess this would bring in still yet another function like
uninclude file1.ew
or something like that, so that you could use the same name
over again:

WriteNewIncludeFile("file1.ew",1)
include file1.ew
DoStuffWithNewFile()

uninclude file1.ew
WriteNewIncludeFile("file1.ew",2)
include file1.ew
DoStuffWithNewFile()

Sound interesting to anyone?

Take care for now,
Al

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

Search



Quick Links

User menu

Not signed in.

Misc Menu