Re: Clean Object Class Design -- Circle/Ellipse
Date: Sun, 19 Aug 2001 02:36:00 -0400
Message-ID: <afJf7.86$wg.21267610_at_radon.golden.net>
>> >> >What does one gain by deriving Integer from Rational?
>> >>
>> >> What does one gain by not deriving integer from Rational? What does
one
>> >> lose? How does one's decision affect integer values in the least --
>> >> including their subtype/supertype relationships with other numeric
types?
>> >>
>> >This one is easy. Take a look at the Smalltalk Number classes. Integer
>> >and Real inherit from Number. Try inheriting Integer from Real and see
>> >what a mess you've made.
>>
>> I have no doubt that Smalltalk makes a mess of it.
>
>Are you just being emotional or being stupid?
Neither. I have no doubt that Smalltalk makes no distinction whatsoever between operators and mutators. I also have no doubt that Smalltalk provides absolutely no independence whatsoever between type and representation.
Of course, Smalltalk makes a mess of it. How could it do anything else? Received on Sun Aug 19 2001 - 08:36:00 CEST
