Inherited Variables

Boyd Sweeney (sweeneyb@puzzler.nichols.com)
Fri, 8 Mar 1996 08:05:03 -0500

I suppose it's not the perfect time to suggest an addition to the
scripting language, right after a major release :-) However,,,

I think it might be nice to have a keyword that would allow local
variables to be inherited by an object's 'sub objects'. Or for that
matter, a keyword that would restrict the scope of global variables would
do. Or maybe an entirely new variable keyword.

For example, I could define a variable once in a stack's script, which
would automatically be available to scripts of all of the cards, buttons,
fields, etc. within that stack, but not to objects of other stacks. Or, I
could define a variable in a group script that would be available only to
those objects within that group.

This approach would simplify the use of variables that are needed in
several objects, but don't really need to be global to an entire
application. It would also isolate such variables in stacks that
programmers intend to re-use in a lot of different projects. The approach
that I would currently use to avoid global variables in such a case it to
stash vales in hidden fields.

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
_/ Boyd Sweeney Scientist, Nichols Research Corporation _/
_/ sweeneyb@puzzler.nichols.com (205) 883-1170x1775 _/
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/