Van Snyder wrote:
> Werner Schulz wrote:
> > (o) PARAMETER Variant:
> > I have wished many times to have a variable that can only be
> > declared once at the beginning of a programme and remains constant
> > throughout.
>
> Roger Glover wrote:
> ! One can obtain this effect fairly handily through use of
> ! modules[3]. True, it is not very efficient for large scale
> ! work. On the other hand initial parameter setting and usage
> ! is very unlikely to be a significant part of runtime.
<snip>
> Lifetime software costs (development, maintenance, operations) are
> roughly proportional to code volume.
I agree. I did not intend to imply that this is an elegant
solution; it is not. But it does work.
> Write-once "variables" (also
> known as "constants" in other languages,
Is this what you were thinking I meant by ALLOCATABLE PARAMETER?
I didn't exactly mean this, but it sounds useful.
> and variables that are
> read-only outside of the "owning" module
Also sounds useful. From time to time I have thought that
syntax like "PRIVATE(READ)" for read-only or "PRIVATE(WRITE)"
for write-only would be useful.
-------- Cray Research --------- Roger Glover
-- A Silicon Graphics Company -- http://home.cray.com/~glover
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|