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.7 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM,REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,3ae40b42b99b8123 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: mockturtle Newsgroups: comp.lang.ada Subject: Re: Little tutorial about streams Date: Fri, 4 Mar 2011 12:58:58 -0800 (PST) Organization: http://groups.google.com Message-ID: Reply-To: comp.lang.ada@googlegroups.com NNTP-Posting-Host: 93.37.224.135 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1299272454 8171 127.0.0.1 (4 Mar 2011 21:00:54 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 4 Mar 2011 21:00:54 +0000 (UTC) In-Reply-To: <1ppzt5sz6fzn5$.1p20pqy4on9bt.dlg@40tude.net> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=93.37.224.135; posting-account=9fwclgkAAAD6oQ5usUYhee1l39geVY99 User-Agent: G2/1.0 Xref: g2news1.google.com comp.lang.ada:17841 Date: 2011-03-04T12:58:58-08:00 List-Id: Dear all, I'm back. First of all, thank you to everyone for your comments. Let me do a cumulative answer. I am afraid that this will make this post a bit long. ---- > ---- on Feb 28 2011 Ludovic Brenta wrote > > Your page is great. How's that for positive criticism :) It is great. :-) > ---- on Feb 28 2011 Ludovic Brenta wrote > > I've made a couple edits which you are, of course, free to revert. I > (think I) have generally improved the style of the prose but not changed > the basic structure of the tutorial. Thank you, I'll check, but I am sure that they are OK. English is not my native language and, although I feel quite confident with it, style improvements are welcome. > ---- on Feb 28 2011 Ludovic Brenta wrote > > Between the sections "Abstract streams" and "Serialization functions", > it would be nice to have a section on "Predefined concrete streams" > discussing, in particular Ada.Text_IO.Text_Stream, so that beginners > can start writing to the console using streams. Thank you for the suggestion. I will add the new section as soon as I can. > ---- on Feb 28 2011 Ludovic Brenta wrote > > Your first example of a serialization function, procedure > Example.Print, seems too complicated. But that may be on purpose, > ... No, it was not on purpose. I reused an old code and I did not notice that I could simplify it. > ---- on Mar 1 2011 Randy Brukardt wrote > > The little table under "Serialization functions" seems confusing, since it > uses "composite" for Input and Output. But of course you can use Read and > Write for "composite" types. > ... > ---- on Mar 1 2011 AdaMagica wrote > > I would propose "definite" for "simple" and "indefinite" for > "composed". To be honest, I do not like that choice of names too. I could not think anything better when I was writing it, so I went for the "least bad" choice, making a mental note to think something better. I'll take your suggestions into account. > ---- on Mar 1 2011 Randy Brukardt wrote > > I had to get a dictionary to figure out what the > word "exigence" means. Probably best to use a simpler > word here; no need to make a tutorial harder to read > than needed. > ... Juk! I could call this a "false false friend"... In Italian "esigenza" is a very common word and this made me to slip to "exigence"... I'll change it. > ---- on Mar 1 2011 Randy Brukardt wrote > > It might make sense to mention that you can also specify these subprograms > with an aspect clause in Ada 2012 I did not know about this. Do you have a reference? > ---- on Mar 1 2011 Dmitry A. Kazakov wrote > > You can also mention chain code as a technique to > implement S'Read/Write in a platform independent way. Thank you for your suggestion. One motivation for chosing the format used in the example was that I wanted to have something that could be printed on screen (also to debug the code before publishing it). ---- Here, I hope I did not forget anyone. Thank you again for your feedback. Riccardo