Re: Including Files
- Posted by cklester <cklester at yahoo.com> Dec 01, 2006
- 761 views
Chris Bensler wrote: > > cklester wrote: > > I'd like to be able to include files using a variable. For example: > > > > sequence s > > s = dir("plugins") > > for t=1 to length(s) do > > if not find(s,{".",".."}) then > > include s[t] > > end if > > end for > > That is not a very easy thing to do. Doing so would require changing how Eu > processes code. I don't see how include smith.e is that much more complicated than include "smith.e" or sequence smith smith = "smith.e" include smith > The idea is to include an empty, dummy/placeholder file in your application > just after the branch. Write an import() routine that accepts an include > filename. > In the routine, copy the contents of the specified file into the dummy file. Yeah, that might work. I'll think it over and get back to ya. :) -=ck "Programming in a state of Euphoria." http://www.cklester.com/euphoria/