comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@acm.org
Subject: Re: Abstract Functions
Date: Wed, 11 Jul 2001 19:01:42 GMT
Date: 2001-07-11T19:01:42+00:00	[thread overview]
Message-ID: <qo137.175321$%i7.114223450@news1.rdc1.sfba.home.com> (raw)
In-Reply-To: mailman.994871055.25657.comp.lang.ada@ada.eu.org

I think a fair summary is "go ahead, write what you want, it's OK".
  In Claw.Sockets, type Socket_Type is non-abstract, with Open,
Read, Close, etc primitives appropriate for a blocking socket.
There's also
type Async_Socket_Type is abstract new Socket_Type with record ...
and various new primitives both abstract, eg,
  procedure When_Readable(Socket : in out Async_Socket_Type) is abstract;
and non-abstract
  procedure When_Connect(Socket : in out Async_Socket_Type);
The user is thus forced to supply a routine to handle incoming data
(When_Readable) but it's optional whether he supplies a non-default
routine to handle the initial connection event.



  reply	other threads:[~2001-07-11 19:01 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-11 14:49 Re[2]: Abstract Functions ANH_VO
2001-07-11 19:01 ` tmoran [this message]
2001-07-12 14:10   ` Marin David Condic
  -- strict thread matches above, loose matches on Subject: below --
2001-07-11 14:24 Marin David Condic
2001-07-11 15:22 ` Ted Dennison
2001-07-11 15:43   ` Marin David Condic
2001-07-11 16:35     ` Ehud Lamm
2001-07-11 17:08       ` Marin David Condic
2001-07-11 17:27     ` Ted Dennison
2001-07-16 21:43     ` Tucker Taft
2001-07-16 22:15       ` Marin David Condic
2001-07-16 21:51     ` Stephen Leake
replies disabled

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