comp.lang.ada
 help / color / mirror / Atom feed
From: "Marin David Condic" <marin.condic.auntie.spam@pacemicro.com>
Subject: Re: Abstract Functions
Date: Thu, 12 Jul 2001 10:10:25 -0400
Date: 2001-07-12T14:10:27+00:00	[thread overview]
Message-ID: <9ikb4j$fvv$1@nh.pace.co.uk> (raw)
In-Reply-To: qo137.175321$%i7.114223450@news1.rdc1.sfba.home.com

Kool!!! I had not thought to take a non-abstract tagged record and turn it
into an abstract tagged record. That would about solve the problem by
specifying an intermediate class that the user derives from - preserving all
the workings of the root class while allowing you to specify new abstract
operations.

Thanks. I'll give that a try and see if the compiler swollows it.

MDC
--
Marin David Condic
Senior Software Engineer
Pace Micro Technology Americas    www.pacemicro.com
Enabling the digital revolution
e-Mail:    marin.condic@pacemicro.com
Web:      http://www.mcondic.com/


<tmoran@acm.org> wrote in message
news:qo137.175321$%i7.114223450@news1.rdc1.sfba.home.com...
> 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-12 14:10 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
2001-07-12 14:10   ` Marin David Condic [this message]
  -- 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