Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> comp.databases.theory -> Re: Clean Object Class Design -- Circle/Ellipse

Re: Clean Object Class Design -- Circle/Ellipse

From: Bob Badour <bbadour_at_golden.net>
Date: Sun, 19 Aug 2001 02:36:00 -0400
Message-ID: <afJf7.86$wg.21267610@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 - 01:36:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US