Re: Including Files
Chris Bensler wrote:
> Chris Bensler wrote:
> > cklester wrote:
> > > I'd like to be able to include files using a variable. For example:
> > You can do what you want using a dynamic include mechanism however.
> > I'm not sure if it will work in >=2.5 but I beleive it will.
> I made a mistake. you can't append include files together unless you can
> guarantee
> there will be no local name clashes, or else consolidate the files.
What about just simply creating an include file that includes files?
files = dir("plugins")
fn = open("built_at_runtime.e","w")
for t=1 to length(files) do
puts(fn,"include " & files[D_NAME])
end for
include built_at_runtime.e
-=ck
"Programming in a state of Euphoria."
http://www.cklester.com/euphoria/
|
Not Categorized, Please Help
|
|