This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gfortran patch - g77 record markers


On Tue, May 31, 2005 at 10:53:52AM -0700, Richard E Maine wrote:
> On May 31, 2005, at 9:42 AM, Steve Kargl wrote:
> 
> >On Tue, May 31, 2005 at 07:02:11PM +0300, jblomqvi@cc.hut.fi wrote:
> >>The choice of default record marker is made at link time by linking in
> >>different libraries...
> 
> >I was wondering about the need for 2 separate, complete, libraries...
> 
> I wonder about the tradeoff of overhead vs functionality here. As Steve 
> notes, the overhead seems a bit high. Let me add that this approach 
> limits the functionality. High overhead plus limited functionality 
> seems like a combination to make one wonder.
> 
> The limitation in functionality is that a link-time option is, unless 
> I'm quite confused about what you mean, inherently all-or-nothing. 
> There is presumably no way to specify one form for some files, but a 
> different form for others. It seems to me that it is pretty plausible 
> for someone to want to be able to read or write a file with a different 
> record-mark scheme without changing every other file used by the 
> program.
> 
> In fact, one scenario occurs to me as extremely simple and likely to 
> occur. How does one write a program to copy a file to one with a 
> different record-mark scheme if the selection is made at link time?
> 

See Bud's original email and his list of possible improvements offered
by the current design.  His #2 is
  
    #2. an additional parameter to the open statement to select
    the type of record marker.

My concern is the possible proliferation of libraries and the
concomitant support nightmare.

OTOH, Bud and Janne did the heavy lifting and have provided actual
code.

-- 
Steve


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]