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.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,899484222880ae7c X-Google-Attributes: gid103376,public From: Tom Moran Subject: Re: preventing inheritance Date: 1996/12/18 Message-ID: <32B85141.376A@bix.com>#1/1 X-Deja-AN: 204823745 references: <32B22CDC.3FE4@bix.com> <32B5A234.947@watson.ibm.com> <32B640FC.D30@bix.com> <32B64298.3CC5@bix.com> <32B834AC.409@watson.ibm.com> content-type: text/plain; charset=us-ascii organization: InterNex Information Services 1-800-595-3333 mime-version: 1.0 reply-to: tmoran@bix.com newsgroups: comp.lang.ada x-mailer: Mozilla 3.0Gold (Win95; I) Date: 1996-12-18T00:00:00+00:00 List-Id: > --still strikes me as a perfectly natural way to model this problem > domain. Why do you think this looks "bizarre"? It looks eminently reasonable from a design perspective, and indeed, I'll probably change the existing code to that approach. But I think it looks 'bizarre' from the perspective of a user because: 1) Of the two dozen operations on Edit_Control, this is the _only_ one that doesn't also work on Multiline_Edit_Control. It seems that a significant structural change is required by something small and obscure enough to almost call a bug. Indeed, an informal application view of the objects Multiline_Edit_Control and Edit_Control would say the one "is a" the other - with a glitch. I'm tempted to simply have a procedure Get_First_Character (Control : in out Multi_Line_Edit_Control_Type; ... that raises "Not_Yet_Implemented"- except that defers error detection to run time. 2) If MS in the future adds a way to implement Get_First_Character on Multiline edit controls, it would become reasonable to move that routine from Edit_Controls.Single_Line to Edit_Controls, leaving Edit_Controls.Single_Line a bodyless package containing nothing but a single type definition. It would become yet another instance of "this seemingly pointless complexity is here for historical reasons". My difficulty is really an aesthetic one so perhaps the only solution is to modify my aesthetic sensibilities. ;)