Loose type checking in E

Tyler Close tyler@lfw.org
Sat, 24 Oct 1998 08:29:43 -0400


At 08:11 AM 10/24/98 -0400, you wrote:
>>If i had inheritance, i would only have to add one method (say,
>>'setFont') to the Button, and all my various buttons would
>>immediately benefit from the new functionality.
>
>I think you're kidding yourself. The new font will have different
>proportions, meaning that you will need to resize things. Suddenly changing
>the size of the font without notifying sub-classes will cause funny things
>indeed.
>
>This is a good example of the larger problem of white box reuse that
>inheritance encourages.

Gee, I almost forgot the most important point. There is no reason for a
Button to know anything about fonts. Some buttons use gifs. Hello widened
interface.

Tyler