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.6 required=5.0 tests=BAYES_00,TO_NO_BRKTS_FROM_MSSP autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a644fa9cd1a3869a X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-28 13:22:11 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out.visi.com!hermes.visi.com!newsranger.com!www.newsranger.com!not-for-mail Newsgroups: comp.lang.ada From: Ted Dennison References: <3BECA3B7.5020702@telepath.com><3BF0247D.4500975E@san.rr.com><5BXH7.22252$xS6.34813@www.newsranger.com><3BF052D3.ECEF3FF2@san.rr.com><3BF19FF8.7FE097EF@boeing.com><3BF27410.C899A16B@brighton.ac.uk><3BF3EDE5.FE0ED701@brighton.ac.uk> <700ht9.6k1.ln@127.0.0.1> <9tht9a$2j1ni$1@ID-25716.news.dfncis.de> <3piL7.34607$xS6.59455@www.newsranger.com> <9u0rkd$q9k$1@nh.pace.co.uk> <3C049C06.DF85EF80@angelfire.com> <9u2scm$lqg$1@nh.pace.co.uk> <9u38pn$r7r$1@nh.pace.co.uk> <9paN7.41146$xS6.69394@www.newsranger.com> <9u3i3t$211$1@nh.pace.co.uk> Subject: Re: Overriding 'Class'Input (was: List container strawman 1.1) Message-ID: X-Abuse-Info: When contacting newsranger.com regarding abuse please X-Abuse-Info: forward the entire news article including headers or X-Abuse-Info: else we will not be able to process your request X-Complaints-To: abuse@newsranger.com NNTP-Posting-Date: Wed, 28 Nov 2001 16:21:58 EST Organization: http://www.newsranger.com Date: Wed, 28 Nov 2001 21:21:58 GMT Xref: archiver1.google.com comp.lang.ada:17134 Date: 2001-11-28T21:21:58+00:00 List-Id: In article <9u3i3t$211$1@nh.pace.co.uk>, Marin David Condic says... >It also seems to explain where the 'Read and 'Write are useful since after >initially looking at them, I didn't know why I'd want them if they didn't >write out the tags, etc. (The 'Input and 'Output seem to be what you >normally want to use - getting them automagically by defining 'Read and >'Write makes more sense.) Well, if you want to read in a large structure, you'd probably be better off using 'Read just because there won't be an extra assignment involved. Also, I don't find 'Input all that useful because you have to have some idea of the size of the object in order to safely call it anyway. I use it for strings sometimes, but not for anything else. As for 'Class'whatever: since you have to know the exact types of all your non-tagged types when you use streams, it isn't really all that helpful to not have to know the exact type of your tagged types. It could be useful if you want to dynamicly dispatch on the result, (or for restoring a hetrogenious array from which you'd like to dynamicly dispacth later) but I've yet to need that myself. So in practice, I find I mostly use the simple procedural forms. But perhaps that's just me. I'll give you this: if it turns out I'm wrong about 'Read being used by 'Input, I'll add 'Input and 'Output into the strawman as well. It was certinaly my intention for those to be available too. --- T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced.