comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@acm.org
Subject: Re: Dynamic dispatch again
Date: Tue, 09 Oct 2001 17:58:05 GMT
Date: 2001-10-09T17:58:05+00:00	[thread overview]
Message-ID: <NUGw7.19631$IY3.13629731@news1.rdc1.sfba.home.com> (raw)
In-Reply-To: 3BC31A54.F33F03D1@san.rr.com

>example, a task that would receive each fragment of the message until
>all fragments had arrived, concatenate them, and present them as if they
>arrived in one chunk, or a task that would accept a message, blocking
>the caller until it had actually been put on the wire, etc. I can
  I'm not sure I understand what you are trying to do.  It sounds like
you want a bunch of low level tasks running various message channels.
Sort of like Ada.Text_IO, Socket_IO, Serial_IO, that kind of thing.
They handle buffering, timing, etc on their respective devices.  Then
the programmer is presented with a single interface where overloading
determines what's called, eg Put_Line(F,...) calls Text_IO if F is an
Ada.Text_IO.File_Type, Socket_IO if it's a Socket_IO.File_Type, etc.
In that scenario the programmer never codes a "select" or a queue,
but calls a routines from your library which handle that stuff.  Is
this closer to what you are driving at?  Ignoring implementation,
can you write down the specifications for the abstraction you want
your users to see.



  reply	other threads:[~2001-10-09 17:58 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-06  1:08 Dynamic dispatch again Darren New
2001-10-06 17:52 ` tmoran
2001-10-08  1:13   ` Darren New
2001-10-08  4:23     ` tmoran
2001-10-08 16:26       ` Darren New
2001-10-08 18:21         ` tmoran
2001-10-08 19:07           ` Darren New
2001-10-09  0:25             ` tmoran
2001-10-09  0:40               ` Darren New
2001-10-09  1:29                 ` Larry Hazel
2001-10-09  4:10                 ` tmoran
2001-10-09 15:40                   ` Darren New
2001-10-09 17:58                     ` tmoran [this message]
2001-10-09 19:26                       ` Darren New
2001-10-09 19:42                         ` tmoran
2001-10-09 20:23                           ` Darren New
2001-10-09 22:37                         ` tmoran
2001-10-10 18:17                           ` Darren New
replies disabled

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