Re: Clean Object Class Design -- Circle/Ellipse

From: Richard MacDonald <macdonaldrj_at_att.net>
Date: Sun, 19 Aug 2001 05:53:29 GMT
Message-ID: <tvIf7.15643$Ki1.1261165_at_bgtnsc06-news.ops.worldnet.att.net>


"Bob Badour" <bbadour_at_golden.net> wrote in message news:T%Gf7.80$oL7.21026935_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? Seems like the two go together with you.

>
> >A few decades of experience have given us the answer. Back to you guys
> >to figure out the correct theory :-)
>
> Date already did. Hadn't you noticed?

Must be nice to live in your simple world. Over and out. Received on Sun Aug 19 2001 - 07:53:29 CEST

Original text of this message