comp.lang.ada
 help / color / mirror / Atom feed
* questions about "Programming by Extension" article in Adapower
@ 2001-02-03 15:40 Dan Raviv
  0 siblings, 0 replies; only message in thread
From: Dan Raviv @ 2001-02-03 15:40 UTC (permalink / raw)


The link to the article:
http://www.adapower.com/articles/extension.html

As far as i understand the article, it provides a way to use
polymorphism for ADOs (whereas it is usually used with ADTs).

However, there are a few issues in the article which i do not feel
comfortable with.

First of all, shouldn't the FLAG type in GENERIC_INTERFACE be a private
type? And also, an abstract one?

Also, shouldn't the DATA parameter of the GET procedure be an out
parameter?

Finally, even though we assume that the FLAG type in GENERIC_INTERFACE
and the FLAG types derived from it will never contain any data,
shouldn't we still define them as private (or with private) and use the
null record in the private part? There is always a chance that we MIGHT
want to add some fields to the flags... Even though it is unlikely. And
even if there is no such chance, i think the flags implementation
should be hidden in the private part.

You thoughts? :)


Sent via Deja.com
http://www.deja.com/



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-02-03 15:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-03 15:40 questions about "Programming by Extension" article in Adapower Dan Raviv

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