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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a0224dc3d1e52f3d X-Google-Attributes: gid103376,public From: "James S. Rogers" Subject: Re: Streams and Concurrency Date: 1998/12/30 Message-ID: <76e6as$6vs@bgtnsc02.worldnet.att.net>#1/1 X-Deja-AN: 427240071 References: <76c3tv$acs@bgtnsc02.worldnet.att.net> <76cat4$2ldc$1@news.gate.net> <76dn7b$a35@bgtnsc03.worldnet.att.net> <76e4rg$bsr$1@nnrp1.dejanews.com> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Organization: AT&T WorldNet Services Newsgroups: comp.lang.ada Date: 1998-12-30T00:00:00+00:00 List-Id: dennison@telepath.com wrote in message <76e4rg$bsr$1@nnrp1.dejanews.com>... >I see. You (probably Robert too) were talking about wrapping the client's >'Read and 'Write calls themselves. So what you have here is a multi-taksing >logging package, rather than a multitasking stream. I was thinking about a >pure stream implementation. There appears to be no way to write the stream >itself to handle this. Perhaps that's not as bad as I first thought it was... > >But this solution only works for objects that are part of the same class >hiearchy. That's too restrictive. I'd want to be able to use any type. It >sounds like Tuck's generic suggestion is the way to go. Yes, that is a distinct restriction. On the other hand, if you adopted a programming style from another language, such as Java, you could have all your data types inherit from an abstract null tagged record. The result would be some more overhead, but a very generally useful approach to using streams with multiple tasks. It would also simplify the problem of reading and understanding the log file contents. The abstract base type could have a Print or Display procedure which must be implemented for each type in the hierarchy. Displaying the contents of the file would then rely on the dispatching mechanism of tagged types. Jim Rogers Colorado Springs, Colorado USA