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.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00, LOTS_OF_MONEY 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 14:00:09 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-x2.support.nl!news-x.support.nl!psinet-eu-nl!psiuk-p4!psiuk-p3!uknet!psiuk-n!news.pace.co.uk!nh.pace.co.uk!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: Overriding 'Class'Input (was: List container strawman 1.1) Date: Wed, 28 Nov 2001 16:50:00 -0500 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: <9u3m6a$3o0$1@nh.pace.co.uk> 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> NNTP-Posting-Host: dhcp-200-133.miami.pace.co.uk X-Trace: nh.pace.co.uk 1006984202 3840 136.170.200.133 (28 Nov 2001 21:50:02 GMT) X-Complaints-To: newsmaster@news.cam.pace.co.uk NNTP-Posting-Date: 28 Nov 2001 21:50:02 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.lang.ada:17138 Date: 2001-11-28T21:50:02+00:00 List-Id: Well, you're probably correct about how it works - but now I'm wondering about what happens inside a hypothetical 'Write or 'Read for a hypothetical list. The list itself is probably some form of record, with access values to build a chain of nodes. So internally, you do a 'Write on the record (or the fields of the record you want to save) then you are going to do 'Writes for the individual nodes? What if you want the 'Output for the nodes so that any tags, discriminants, etc end up in the stream? Now you've got a reason for wanting to have the 'Input and 'Output to be manually constructed? Or does the magic extend to the compiler knowing that the 'Reads & 'Writes of the nodes should be converted to 'Inputs and 'Outputs just because you got there from a 'Input or 'Output? (Can't imagine how!) IIRC, somewhere between keeping the bounds/discriminants/tags around in the stream and dynamic allocation and knowing what you've got in the stream and dispatching on 'Class'Read/'Class'Write, I think you've got a means of storing and recreating a list of just about anything. I'm just not entirely convinced that it can be done with overriding the 'Read and 'Write alone. (Maybe I need to reread some of this stuff, look at code I did some time ago & do a few experiments.... Hmmmm........) MDC -- Marin David Condic Senior Software Engineer Pace Micro Technology Americas www.pacemicro.com Enabling the digital revolution e-Mail: marin.condic@pacemicro.com Web: http://www.mcondic.com/ "Ted Dennison" wrote in message news:WzcN7.41321$xS6.69893@www.newsranger.com... > > 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. >