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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC 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!news3.google.com!proxad.net!feeder1-2.proxad.net!newsfeed.straub-nv.de!noris.net!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: for S'Image use Func?? Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH 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> <5715ce4b-3ddc-4f50-8b4d-094e93db657a@e21g2000vbl.googlegroups.com> <1o1jj8ho00vti.18z26rwdv3apb.dlg@40tude.net> <66e2a4b1-2784-4c60-8e6a-2237c7f7b477@r9g2000vbk.googlegroups.com> Date: Sun, 16 May 2010 09:48:18 +0200 Message-ID: NNTP-Posting-Date: 16 May 2010 09:48:17 CEST NNTP-Posting-Host: cf846dbe.newsspool1.arcor-online.net X-Trace: DXC=lgEa_3O[7hNj7E:bke<5HFic==]BZ:afN4Fo<]lROoRA<`=YMgDjhgBfcXS1NNXb[J[6LHn;2LCVN[d0@iFRJ4E X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:11657 Date: 2010-05-16T09:48:17+02:00 List-Id: On Sat, 15 May 2010 13:50:47 -0700 (PDT), Maciej Sobczak wrote: > On 15 Maj, 10:35, "Dmitry A. Kazakov" > wrote: > >> Do you want to say that text files are Turing complete? (:-)) Maybe they >> are. Maybe they are not. Consider an experiment. Let us generate random >> files containing CRs, LFs and other characters. Show the file to several >> people asking them to count lines... > > Wrong, unless you clearly define the meaning of "show". That is the point! Show is in each other's head. Some would consider single LF as one empty line, others as two, and some as a broken file. > And if you give me the freedom to choose my rendering scheme, it will > be: > > $ cat -n file.txt It does not work under Windows. As you said about VMS, why should I care what a non-existent hobbyist's OS does? (:-)) >>> 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. >> >> + source codes, which nicely covers 90% of my tasks. > > Fine. You still forgot about log files. :-) I don't use UNIX, remember. Our log files are binary. (Trace files are texts.) >> I don't need Ada.Document_IO. > > Me neither. I'm perfectly OK with the stream I/O. Yes, you stream graphical minutes, as you said... >>> The C++ source code is not a text for me. >> >> Then you shall not use text editors with it. > > I don't. I use programmer's editors, also known as IDEs, with it. IDE is a front end to a text editor. You still need a text to print, store, pass to the compiler. >> You could say: it >> ends when blocked. Not very nice, but, in fact, widely used in network >> communication protocols. > > Widely? An example or two, please? Any. You cannot rely on the remote host always sending you graceful disconnect. Many devices we are dealing with don't even have such thing. They just become silent. As a practical example, load some large text page into the browser. Before it completes, in the middle, pull the Etherenet jack out. Observe the stream end! -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de