--On Wednesday, May 12, 2004 5:37 PM +0100 John Blair-Fish
<[log in to unmask]> wrote:
> These is some discussion as to whither module
> variables which re not parameters can be given initial values.
> What does the standard say?
That is perfectly legit per the standard. Heck, that is one
of the many advantages of modules over, for example, COMMON.
Initializing variables in COMMON gets into many "issues".
Initializing variables in modules is basically trivial with
no special complications.
It isn't worth my time to bother to drag out the exact standard
citations, because this is too straightforward to be "interesting"
as a point of interpretation. If there is "some discussion"
of this, I assume it isn't discussion based on the standard,
but just on guesses (perhaps from people thinking that modules
are sort of like COMMON, which has definite "issues" with
initialization.)
So I'll just stick with an unsupported assertion that such
initialization is fine in modules.
--
Richard Maine | Good judgment comes from experience;
[log in to unmask] | experience comes from bad judgment.
| -- Mark Twain
|