From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,c689b55786a9f2bd X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!e21g2000vbl.googlegroups.com!not-for-mail From: Maciej Sobczak Newsgroups: comp.lang.ada Subject: Re: for S'Image use Func?? Date: Fri, 14 May 2010 14:03:17 -0700 (PDT) Organization: http://groups.google.com Message-ID: <5715ce4b-3ddc-4f50-8b4d-094e93db657a@e21g2000vbl.googlegroups.com> References: <1qcb6z4i20dyb.1dz2hd4c0vx69.dlg@40tude.net> <87632vwikr.fsf@ludovic-brenta.org> <112n6z3554srr$.tjzjtg467xfo.dlg@40tude.net> <1fv8frriu1h4s.g9jy78q1c0io.dlg@40tude.net> <7a31eab7-1a1c-4653-bf49-ff1498e318f9@b18g2000yqb.googlegroups.com> <199e07cb-2e93-40fc-974d-000b83b6000f@s29g2000yqd.googlegroups.com> <16vlvmzpbalm5.1chuumyyuyb2j$.dlg@40tude.net> <1fe63c27-207f-4a73-a823-3ec1410e35e8@j35g2000yqm.googlegroups.com> <1g82ubkc0t0pf$.nuj3gqp1buh6.dlg@40tude.net> NNTP-Posting-Host: 85.222.87.69 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1273870997 9358 127.0.0.1 (14 May 2010 21:03:17 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 14 May 2010 21:03:17 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: e21g2000vbl.googlegroups.com; posting-host=85.222.87.69; posting-account=bMuEOQoAAACUUr_ghL3RBIi5neBZ5w_S User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3,gzip(gfe) Xref: g2news2.google.com comp.lang.ada:11621 Date: 2010-05-14T14:03:17-07:00 List-Id: On 13 Maj, 09:31, "Dmitry A. Kazakov" wrote: > > I am pragmatic here. > > I am too. I know that Windows does exist and that LF /= CR LF. This is an added value? I call it a trivial stream filter with barely one bit of state in the finite-state machine. Nothing to cheer about. > Al this mess is abstracted away by Ada.Text_IO. This "abstraction" is peanuts. Like in Ada.Stream_IO_With_Trivial_Filter. :-) > (And OpenVMS exists too) I guess that the Commodore 64 emulator for iPhone has a wider user base - please do not refer to effectively non-existing systems just to keep the discussion going. It's wasteful. > > So what is a text, really? > > It is not a book. A scientific paper, perhaps? Or a CV? If you stick to the concept of "text" as defined by Text_IO (completely unstructured sequence of lines), then effectively the only use-case that you will cover without problems is... config files. Like in Ada.Config_Files_IO. :-) > Browser renders texts. It means that text is not the input, but the output > of. The input of a browser is a program written in some ugly language named > HTML. Wrong. I use the browser to read .txt files, too. No HTML is necessary. > I consider text an ordered set of lines. I consider such a set of lines to be a stream on steroids. The problem is that our definitions are arbitrary and we're not going to conclude anything. > > Yet everybody is dead focused on the concept of text files that are > > composed of lines. There are no lines, really. > > Of course there are, see //-comments in C++. The C++ source code is not a text for me. I know that it is a text for you due to your arbitrarily chosen definitions. > > Translation: Text_IO cannot detect the end of text without blocking. > > No, the translation is: stream does not have an end. That's your arbitrary definition and you did not provide any reference for it. I see no reason to accept it. In particular, /dev/null is a very nice empty stream. It is not a stream that has no data for infinite amount of time (this can be emulated) - this is genuinely empty stream which has an end and that end can be detected immediately. -- Maciej Sobczak * http://www.inspirel.com YAMI4 - Messaging Solution for Distributed Systems http://www.inspirel.com/yami4