1. Re: Pete: Your question

On Mon,  3 Nov 2003 00:25:16 +0000, Al Getz <Xaxo at aol.com> wrote:

>
>Hello again Pete,
>
>About your question, was it the 500 line thing?
Well it appears you found the question, but think I was talking about
the length of the file, I wasn't.

I said: Change the include file like this:

sequence mynumber
mynumber = {10,10}	-- was just integer 10

global procedure changemynumber(integer instance, atom number)
	mynumber[instance] = number
end procedure

<etc>

Then, instead of:
include test.e as test1
include test.e as test2
test1:changemynumber(5)
test2:changemynumber(0)
?test1:x

You can just have:
include test.e
changemynumber(1,5)
changemynumber(2,0)
?x[1]

My question was:
Is there something much more difficult about your program which means
this approach cannot be used?

I believe this is far more flexible and involves far less overhead
than abusing the include as statement, and with a few constants, eg
INPUT=1, OUTPUT=2, makes it easier to read.

Pete

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu