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=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Niklas Holsti Newsgroups: comp.lang.ada Subject: Re: Text_IO, was: Re: Something I don't understand Date: Wed, 19 Feb 2014 19:03:02 +0200 Organization: Tidorum Ltd Message-ID: References: <4a3e55f6-9f54-4084-9f37-96efd4b0d349@googlegroups.com> <0b358700-871b-4603-addd-65e07c7d59e5@googlegroups.com> <13cmx8lollig2.1ic40x57wows8$.dlg@40tude.net> <1mh0lp04e4bzc.vr6hi3fcbba5.dlg@40tude.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: individual.net tNgs+uE2GexU8S48aBQB0Q3U8zv6KoSCVmLdQ8L3EecFsrkuDK Cancel-Lock: sha1:CSLHQ53ZFMBMM9vnRZzqO9O0XVg= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 In-Reply-To: Xref: news.eternal-september.org comp.lang.ada:18673 Date: 2014-02-19T19:03:02+02:00 List-Id: On 14-02-19 17:06 , Robert A Duff wrote: > Niklas Holsti writes: > >> My notion of type "Text" is an internal representation of text meant for >> human reading and viewing. I don't see any logical need for making this >> type a class; there would be only one predefined (and private) type. > > How is your notion of Text different from (say) HTML? Because "Text" is an internal form with a hidden implementation. > Or an internal tree-ish representation of HTML? More or less. Think "abstract syntax tree" instead of "concrete language sentence". Or "Document Object Model". > Anyway, I'd say your notion of Text has nothing to do with Text_IO, > which is about plain unformatted text. Originally 7-bit ASCII. Yes, Text_IO is about plain unformatted text, except for "typewriter formatting" with column, line, and page controls. The discussion was about how to improve the text (output) facilities of Ada. The abstract "Text" structure is one suggestion. But it should perhaps be called something else, to avoid confusing Ada.Text_IO with Ada.Text.IO :-) Anyway, I'm not suggesting "Text" input, only "Text" output. -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .