At 8:38 AM -0800 11/17/2001, Bruce Lewis wrote:
>In HyperCard you were supposed to avoid using global variables, if
>possible. Is this also true in Revolution?

The only reasons I can think of to avoid globals in HyperCard are:
- You can't delete a global after use (though you can put empty into it to
free up the memory it uses)
- Namespace problems, in that two handlers might want to use a global of
the same name for different purposes

The first one doesn't apply in Revolution, since there's a command (delete
variable) to delete a global completely. The second might still be a
problem, although it rarely seems to cause a collision in practice.

--
Jeanne A. E. DeVoto ~ [EMAIL PROTECTED]
http://www.runrev.com/
Runtime Revolution Limited - Power to the Developer!


Reply via email to