Re: simple question (using euphoria 1.4)
On Sun, 12 Dec 1999, Joe wrote:
> >%_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.
>
You can put the functions into separate include files, and call them as often
as you want from a loop:
-- file hello.e
global function sayHello() -- note: these could be procedures,
puts(1,"Hello\n") -- since in this example they don't
return 0 -- return anything useful
end function
-- file goodbye.e
global function sayBye()
puts(1,"Bye Now\n")
return 0
end function
-- file boorring.exu
include hello.e
include goodbye.e
integer x
while 1 do -- this will run forever, hence the name
x = sayHello()
x = sayBye()
end while
Hope that helps,
Irv Mullins
|
Not Categorized, Please Help
|
|