Re: simple question (using euphoria 1.4)

new topic     » goto parent     » topic index » view thread      » older message » newer message

I'm guessing that you're moving the body of the functions into seperate
include files so they run automatically when they are included. You could try
putting the whole function in the include files, include the files once,  then
call the functions. You can't put include statements in a loop, and once
you've included a file, it doesn't run the next time you include it. For
example:

-- a.e
puts(1,"Hello, world!\n")

-- a.ex
include a.e
include a.e

If you run a.ex, it will display Hello, world! only once, since the
interpreter recognizes that a.e has already been included, and therefore
doesn't load it again.

Jeffrey Fielding
JJProg at cyberbury.net
http://members.tripod.com/~JJProg/

EUPHORIA at LISTSERV.MUOHIO.EDU 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.
>
> thanks
>
> joe
>
>   ------------------------------------------------------------------------
>                    Name: question.txt
>    question.txt    Type: Plain Text (text/plain)
>                Encoding: 7bit

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu