comp.lang.ada
 help / color / mirror / Atom feed
From: "James S. Rogers" <jimmaureenrogers@worldnet.att.net>
Subject: Re: Streams and Concurrency
Date: 1998/12/30
Date: 1998-12-30T00:00:00+00:00	[thread overview]
Message-ID: <76e6as$6vs@bgtnsc02.worldnet.att.net> (raw)
In-Reply-To: 76e4rg$bsr$1@nnrp1.dejanews.com

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






  reply	other threads:[~1998-12-30  0:00 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-12-30  0:00 Streams and Concurrency James S. Rogers
1998-12-29  0:00 ` David Botton
1998-12-30  0:00   ` dennison
1998-12-30  0:00     ` Tucker Taft
1998-12-30  0:00       ` dennison
1998-12-31  0:00         ` robert_dewar
1998-12-30  0:00       ` Robert I. Eachus
1998-12-30  0:00         ` Tucker Taft
1998-12-31  0:00         ` dennison
1998-12-31  0:00           ` robert_dewar
1998-12-31  0:00             ` dennison
1999-01-01  0:00               ` robert_dewar
1999-01-04  0:00           ` Robert I. Eachus
1998-12-30  0:00   ` James S. Rogers
1998-12-30  0:00     ` dennison
1998-12-30  0:00       ` James S. Rogers [this message]
1999-01-04  0:00       ` Robert I. Eachus
1998-12-31  0:00     ` Jean-Pierre Rosen
1998-12-31  0:00       ` dewar
1998-12-31  0:00         ` Ada-G, was " Tom Moran
1999-01-01  0:00           ` Brian Rogoff
1999-01-04  0:00             ` Robert I. Eachus
1999-01-08  0:00               ` Mats Weber
1999-01-08  0:00                 ` Robert I. Eachus
1999-01-01  0:00           ` dewar
1999-01-01  0:00             ` Larry Kilgallen
1999-01-08  0:00         ` Mats Weber
1999-01-08  0:00           ` Tucker Taft
1998-12-31  0:00       ` dewar
1998-12-31  0:00         ` dennison
1999-01-04  0:00         ` Jean-Pierre Rosen
1999-01-04  0:00           ` robert_dewar
1998-12-30  0:00 ` dennison
1998-12-30  0:00   ` Robert I. Eachus
1999-01-11  0:00   ` Bulk synchronous model for IO (was Re: Streams and Concurrency) Kevin Rigotti
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox