One possible way is for you to use "value?" in your script
to see if that particular variable is already in use.  You
may have this in your script:

        if not value? 'myvalue [ myvalue: 1 print "not declared" ]

Another possible way is for the script to modify the actual file
whenever it is run to keep your static value up to date.  That's
probably not what you want but I've played with that concept
before.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 09, 2000 11:44 AM
To: [EMAIL PROTECTED]
Subject: [REBOL] "static" variable


Hi, 

Does anyone know whether Rebol has such a kind of variable: you initialize
this
variable at the first time you run the script. In this script, the variable
will
be modified to some value. If you run this script again, this variable will
preserve the value it has in last run.

Thanks in advance.

Tiana

Reply via email to