comp.lang.ada
 help / color / mirror / Atom feed
From: "Thomas G. McWilliams" <tgm@netcom.com>
Subject: Re: use eiffel to build a CAM library?
Date: 1998/01/24
Date: 1998-01-24T00:00:00+00:00	[thread overview]
Message-ID: <tgmEnAEI4.G6J@netcom.com> (raw)
In-Reply-To: J5wZVOAl1ox0Iwbw@treetop.demon.co.uk


Paul Johnson <Paul@treetop.demon.co.uk> wrote:
: OO designs don't use callbacks in the C way: you should use inheritance
: and polymorphism instead.  These play similar tricks with function
: pointers behind the scenes, but you don't need to worry about that.

I disagree. If one's OO design operates purely in a synthetic domain,
then callbacks may not be needed. But the real world is composed of
data representations that must be cajoled into a format acceptable
to OO techniques. Callbacks are most useful when attempting to parse
non-OO streams in an OO fashion. Callbacks can be dispatched on some
discriminant retrieved from the stream, rather than using ugly "if-then",
"inspect", or "case" type techniques. The weakness of all OO languages
seems to be the lack of a general high-level way to describe the mapping of
non-OO stream data into objects. Ada is better than most in this respect,
but it is still has a long way to go.






  reply	other threads:[~1998-01-24  0:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-01-21  0:00 use eiffel to build a CAM library? Shane Miller
1998-01-22  0:00 ` Paul Johnson
1998-01-24  0:00   ` Thomas G. McWilliams [this message]
1998-01-25  0:00     ` Rob Heyes
1998-01-22  0:00 ` Thomas Beale
replies disabled

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