From: Brian Kolden <bakolden5@gmail.com>
Subject: Re: Weird Bug in Get_Line
Date: Wed, 26 Apr 2017 12:32:44 -0700 (PDT)
Date: 2017-04-26T12:32:44-07:00 [thread overview]
Message-ID: <dcbbef9d-87c5-472b-8114-faf1f5b1deef@googlegroups.com> (raw)
In-Reply-To: <odqjnb$g4k$1@dont-email.me>
> According to the ARM (A.10), Text_IO operates on "text files" as defined there.
> Part of that definition is that "the end of a line is marked by a _line
> terminator_" and "the end of a file is marked by the combination of a line
> terminator immediately followed by a page terminator and then a _file
> terminator_" [A.10(7)]. So technically, an implementation of Text_IO is not
> required to work on files that aren't valid Text_IO text files, and the error is
> that your file is not a valid Text_IO text file.
>
> However, such an implementation of Text_IO is pretty useless on most systems,
> and compiler writers usually try hard to make sure that Text_IO works on foreign
> files.
That's fair, however, the functionality of Text_IO is currently inconsistent. I feel that it should either be reworked to always throw the exception or not. At the moment, it comes across as a logical error since it will only complain at a few, very specific line lengths.
next prev parent reply other threads:[~2017-04-26 19:32 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-26 7:38 Weird Bug in Get_Line Brian Kolden
2017-04-26 8:28 ` Brian Drummond
2017-04-26 8:42 ` Brian Kolden
2017-04-26 9:10 ` Brian Kolden
2017-04-26 10:58 ` Simon Wright
2017-04-26 17:03 ` Jeffrey R. Carter
2017-04-26 19:32 ` Brian Kolden [this message]
2017-04-26 20:44 ` Jeffrey R. Carter
2017-05-14 21:49 ` moy
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox