From: Robert Feldt Date: 2000-09-23T00:28:08+09:00 Subject: [ruby-talk:5067] Re: Proposal: Add constants to Math On Sat, 23 Sep 2000, Masahiro Tanaka wrote: > >From: Robert Feldt > >Subject: [ruby-talk:5057] Re: Proposal: Add constants to Math > > > $ irb > > irb(main):001:0> Math.log(-1) > > -Infinity > > irb(main):002:0> require 'narray' > > true > > irb(main):003:0> Math.log(-1) > > Complex(0.0, 3.141592654) > > irb(main):004:0> > > Oh, I overlooked the effect. It depends on Complex class. > Thank you. > No problem. My point was simply that in a language were you can dynamically change the "meaning" of "standard" functions/methods you may run into troubles. I didn't even know that narray used Complex so the side-effect of loading narray above was a difficult "bug" for me to find. Shorter: Flexibility comes with a price. Regards, Robert