Re: Variable length/precision formats?
- From: Joe Krahn <jkrahn@xxxxxxxxx>
- Date: Sat, 25 Feb 2006 17:46:57 GMT
Dan Nagle wrote:
OK, a bit of summary. I don't use VFEs, so I'm guessing a bit.Do you know of any implementations of VFEs that do run-time lookup
of names? Do you know of any proposals to add VFEs to the standard
that were submitted to the committee that included implementing VFEs
for any nonconstant format specifications?
The only discussion I recall of VFE in J3 Plenary ended quickly
with the unanimous agreement by all vendors present that they
were too difficult to implement for the value added to the processor.
There are simply other means (non-advancing transfers)
to accomplish the same goal. Other features of similar difficulty
to implement add greater value.
VFE's are sensible to implement only within format statements and character literals or parameters, but not character variables or expressions. So, VFE interpretation should require only compile-time parsing of a format string.
A VFE can be manually created by the programmer with a simple internal write, so there is no real functionality benefit.
The primary case where a VFE may be different is being able to read a VFE variable into the active format statement, affecting a format later in the same read.
However, modifying a format statement while it is in use is certainly bad programming practice (like modifying write variables with functions inside the output item list), and can be done much cleaner by separating the read into parts using non-adnvancing I/O.
So, the only value in a 'good' VFE implementation is being shorthand for an internal write statement or character expression that generates a format manually.
Given that the only added functionality of a VFE is 'abusing' it by dynamically modifying it, most Standards people prefer the approach of simply using character variables and expressions rather than excluding dynamically-modified VFEs and adding a feature that provides no functionality.
In conclusion, if VFEs simply provice a shorthand for something you can already do with character variables/expressions, then what's the big deal? Or, are people specifically promoting VFE's for the dynamically-modifiable format [mis]feature?
Joe
.
- Follow-Ups:
- Re: Variable length/precision formats?
- From: robin
- Re: Variable length/precision formats?
- From: glen herrmannsfeldt
- Re: Variable length/precision formats?
- From: Gordon Sande
- Re: Variable length/precision formats?
- From: Louis Krupp
- Re: Variable length/precision formats?
- From: Gary L. Scott
- Re: Variable length/precision formats?
- From: Dan Nagle
- Re: Variable length/precision formats?
- References:
- Variable length/precision formats?
- From: Mark Murray
- Re: Variable length/precision formats?
- From: David Frank
- Re: Variable length/precision formats?
- From: Dan Nagle
- Re: Variable length/precision formats?
- From: robin
- Re: Variable length/precision formats?
- From: Joe Krahn
- Re: Variable length/precision formats?
- From: robin
- Re: Variable length/precision formats?
- From: Joe Krahn
- Re: Variable length/precision formats?
- From: robin
- Re: Variable length/precision formats?
- From: Joe Krahn
- Re: Variable length/precision formats?
- From: Richard Maine
- Re: Variable length/precision formats?
- From: robert . corbett
- Re: Variable length/precision formats?
- From: Dan Nagle
- Variable length/precision formats?
- Prev by Date: the problem when I make: Installation of lapack in my computer(Linux with Fedroa core 4)
- Next by Date: label-do can't end on a continue statement?
- Previous by thread: Re: Variable length/precision formats?
- Next by thread: Re: Variable length/precision formats?
- Index(es):
Relevant Pages
|
|