From: David Alan Black Date: 2001-07-25T22:59:46+09:00 Subject: [ruby-talk:18526] Re: OO question Hello -- On Wed, 25 Jul 2001, Paul Brannan wrote: > > I learned on an "OO" language that prevented me from modifying > > these primitives. It took a long time before I realized I was > > Being able to modify primitives is NOT necessarily a good thing. For > example, consider the following Ruby code: s/Being able to modify/Modifying/ # :-) A matter of opinion, of course. I'd rather be able to do this: > > class Fixnum > def +(other) > return 3 > end > end than have isolated exceptions to the openability (?) of classes. David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav