comp.lang.ada
 help / color / mirror / Atom feed
From: Tom Moran <tmoran@bix.com>
Subject: Re: preventing inheritance
Date: 1996/12/18
Date: 1996-12-18T00:00:00+00:00	[thread overview]
Message-ID: <32B85141.376A@bix.com> (raw)
In-Reply-To: 32B834AC.409@watson.ibm.com


> --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. ;)




  reply	other threads:[~1996-12-18  0:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-12-13  0:00 preventing inheritance Tom Moran
1996-12-16  0:00 ` Norman H. Cohen
1996-12-16  0:00   ` Tom Moran
1996-12-16  0:00     ` Tom Moran
1996-12-17  0:00       ` Larry Kilgallen
1996-12-18  0:00       ` Norman H. Cohen
1996-12-18  0:00         ` Tom Moran [this message]
1996-12-19  0:00     ` Robert I. Eachus
replies disabled

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