Dynamic includes

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

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

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

Search



Quick Links

User menu

Not signed in.

Misc Menu