Alexandar Donev wrote:
>--The fact that initialization for a local procedure variable implies the
>SAVE attribute (in fact, I dislike most "implies", which every now and then
>cause debugging nightmares...)
I'm not sure what you want. Initialized variables are made SAVEd
because it's otherwise not clear what it means. Initialization provides
the first value a variable has when execution begins. It does not
specify the value of the variable on each entry to the procedure it's
in. The latter is never what DATA initialization meant either.
If you want the variable to be given the same initial value on each
entry to the procedure, then you can assign that value as the first
executable operation of the procedure. Initialization only adds new
functionality when appled to SAVEd variables.
--
J. Giles
|