simple question (using euphoria 1.4)
--------------0FDD5D813B7FC9FFF346C6CF
please open the attachment to see my question about using "include"
inside a loop. an attachment was the only way i could figure out how to
import text into a netscape email message.
please note that i am using euphoria 1.4, if that makes any difference.
thanks
joe
--------------0FDD5D813B7FC9FFF346C6CF
name="question.txt"
Content-Disposition: inline;
filename="question.txt"
i have been working on a program for some time now and have gotten to a point
where it needs a basic
redesign in order to be more easily maintained.
------------------------------------------------------------------
what i am doing now (with 8 functions instead of just two) :
function FirstFunction(parameter list)
do stuff
return value
end function
function SecondFunction(parameter list)
do stuff
return value
end function
while NotEndProgram
FirstFunction(parameter list)
do processing here
SecondFunction(parameter list)
do more processing here
end while
this works but is almost 600 lines long and is quite difficult to maintain and
modify. however, it does
work and allow the program to loop (requesting data, doing calculations, etc)
until i decide to stop it.
------------------------------------------------------------------
what i have managed to do so far :
include FirstFunction.ex
do processing here
include SecondFunction.ex
do more processing here
etc.
with FirstFunction, SecondFunction, and others in separate files. this allows
me to have the functions
in separate files, and call them. unfortunately, it runs only once and then
stops. if i want to enter
more data to be processed, i have to start the program over again.
------------------------------------------------------------------
what i would like to do :
while NotEndProgram do
include FirstFunction.ex
do processing here
include SecondFunction.ex
do more processing here
end while
with FirstFunction, SecondFunction, and others in separate files.
unfortunately, euphoria doesn't seem
to like "include" inside a while loop. is there any way around this, that
allows the program to loop and
still have the functions in separate files?
thanks
--------------0FDD5D813B7FC9FFF346C6CF--
|
Not Categorized, Please Help
|
|