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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e1378588aba09202 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-11 12:01:43 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newshub2.home.com!news.home.com!news1.rdc1.sfba.home.com.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Abstract Functions References: X-Newsreader: Tom's custom newsreader Message-ID: Date: Wed, 11 Jul 2001 19:01:42 GMT NNTP-Posting-Host: 24.7.82.199 X-Complaints-To: abuse@home.net X-Trace: news1.rdc1.sfba.home.com 994878102 24.7.82.199 (Wed, 11 Jul 2001 12:01:42 PDT) NNTP-Posting-Date: Wed, 11 Jul 2001 12:01:42 PDT Organization: Excite@Home - The Leader in Broadband http://home.com/faster Xref: archiver1.google.com comp.lang.ada:9823 Date: 2001-07-11T19:01:42+00:00 List-Id: 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.