Re: Variable length/precision formats?
- From: "James Giles" <jamesgiles@xxxxxxxxxxxxxxxx>
- Date: Thu, 16 Mar 2006 21:26:35 GMT
robin wrote:
....
Since VFEs use wierd, indirect, on-the-fly modification of the
format
No, they do NOT require modification of the format.
*while* the I/O list it controls is still being processed,
and since this fool is still promoting them,
The only fool here is YOU, because you fail to grasp
how this feature is implemented.
I have implemented the feature. I'm certain you have not.
The feature requires something like "thunks" that change
the format as the I/O list is processed. This has already
been fully discussed in this thread. The value of the
format changes every time one of the variables used
in any of the VFEs in the format string gets changed. This
includes changes made to those variables on-the-fly: *WHILE*
the I/O list is being processed. Variables such as implied
loop indices and I/O list items themselves can be in the
VFEs! This wierd, indirect, on-the-fly interaction is not
necessary or desirable. It is a common cause of error
among those using the feature. These errors could be
entirely eliminated by removing the wierd, indirect, on-
the-fly behavior of VFEs. Indeed,the only result of such
a change would be an increase in clarity of programs
using the feature.
Of course, there are other weaknesses of the fearture.
It can't be applied to character variables (or even named
constants) but only to literals inside I/O statements and
to the text of FORMAT statements. That limitation should
be removed. They can't be applied to strings used for
purposes other than I/O. That limitation should be removed.
With those useful changes, I would even support the putting
the feature into the standard. As it stands, I recomment users
never even read about the feature, much less use it. I've
said all this before.
....
]>> it's obviously the
case that he *wants* wierd, indirect, on-the-fly modification of the
format
You are lying.
There is no earthly reason that the values used
as VFEs cannot be established for the write prior to
interpreting the format specification.
Well, the "earthly reason" is that the specification of the
feature (non-standard but shared by most implementations)
*REQUIRES* that VFEs continue to be re-evaluated *WHILE*
the I/O is proceding. I think a behavior that's required by the
definition of the feature is an "earthly reason". I can't imagine
such a poor design in paradise. Fortunately the probability
the standard will ever include the fearture is exactly zero.
I recommend that future Fortran implementations skip it too.
--
J. Giles
"I conclude that there are two ways of constructing a software
design: One way is to make it so simple that there are obviously
no deficiencies and the other way is to make it so complicated
that there are no obvious deficiencies." -- C. A. R. Hoare
.
- Follow-Ups:
- Re: Variable length/precision formats?
- From: robin
- Re: Variable length/precision formats?
- References:
- Re: Variable length/precision formats?
- From: robert . corbett
- Re: Variable length/precision formats?
- From: Joe Krahn
- Re: Variable length/precision formats?
- From: Richard Maine
- Re: Variable length/precision formats?
- From: Joe Krahn
- Re: Variable length/precision formats?
- From: Richard E Maine
- Re: Variable length/precision formats?
- From: Joe Krahn
- Re: Variable length/precision formats?
- From: glen herrmannsfeldt
- Re: Variable length/precision formats?
- From: robin
- Re: Variable length/precision formats?
- From: glen herrmannsfeldt
- Re: Variable length/precision formats?
- From: James Giles
- Re: Variable length/precision formats?
- From: robin
- Re: Variable length/precision formats?
- From: James Giles
- Re: Variable length/precision formats?
- From: robin
- Re: Variable length/precision formats?
- Prev by Date: Re: include files and long fixed form lines
- Next by Date: Re: generalized WHILE() extension/feature?
- Previous by thread: Re: Variable length/precision formats?
- Next by thread: Re: Variable length/precision formats?
- Index(es):
Relevant Pages
|