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=0.7 required=5.0 tests=BAYES_00,MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,bd4b049bc7d2905e,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-02-03 07:50:16 PST Path: supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp2.deja.com!nnrp1.deja.com!not-for-mail From: Dan Raviv Newsgroups: comp.lang.ada Subject: questions about "Programming by Extension" article in Adapower Date: Sat, 03 Feb 2001 15:40:08 GMT Organization: Deja.com Message-ID: <95h8oo$6j5$1@nnrp1.deja.com> NNTP-Posting-Host: 213.57.49.226 X-Article-Creation-Date: Sat Feb 03 15:40:08 2001 GMT X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt) X-Http-Proxy: 1.1 x68.deja.com:80 (Squid/1.1.22) for client 213.57.49.226 X-MyDeja-Info: XMYDJUIDdan_raviv Xref: supernews.google.com comp.lang.ada:4911 Date: 2001-02-03T15:40:08+00:00 List-Id: 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/