Combining shrouded/bound code with un-
- Posted by George Henry <ghenryca at HOTMAIL.COM> Jan 21, 2001
- 471 views
It should be possible to combine the two types of files. I read that shroud automatically sucks up all included files and processes them. And bind puts *everything* together in a single .exe. I want to create data files that allow the user to define various aspects of how my program works, initializing global variables and calling init routines. Quite a few of them, as a matter of fact. Now, I can either use Euphoria syntax for my ini files, or make up some new one (excluding commas, LOL). In either case I gotta write a parser and all that. Which is stoopid since we have a perfectly good parser and EXECUTOR in the Euphoria interpreter. Why should I have to reinvent the wheel? Why not just let my ini files be include files that the user gets to modify? (Assuming they won't know the guts of my program and how to subvert it, I MAY be comfortable with this. Perhaps a little more thought would be advisable before I adopt the idea "whole-hog".) But it appears that shroud and bind are all-or nothing propositions. Sigh. I wonder, if in addition to enabling the combining of shrouded/bound files with naked unprocessed source, some restrictions could be applied to included bare source. It would be nice to have the security of saying, in effect, "Include this file, but if its code tries to modify any variables other than these, or call any routines other than these, raise an error and terminate the program." And to disallow the defining of new variables and routines. Perhaps a new syntax is needed, something like: include_user_file("mathparm.ini", varNames, rtnNames) which would be processed like an include, but with the restrictions on variables and routines mentioned above, varNames and rtnNames being lists of variables and routines that the file would be allowed to modify or call. I am very serious about this, as it involves a fundamental requirement of my program. Thanks for your attention all, George _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com