[#7055] More on VC++ 2005 — Austin Ziegler <halostatue@...>

Okay. I've got Ruby compiling. I'm attempting to get everything in

17 messages 2006/01/05
[#7058] Re: More on VC++ 2005 — nobuyoshi nakada <nobuyoshi.nakada@...> 2006/01/06

Hi,

[#7084] mathn: ugly warnings — hadmut@... (Hadmut Danisch)

Hi,

22 messages 2006/01/10
[#7097] Re: mathn: ugly warnings — Daniel Berger <Daniel.Berger@...> 2006/01/10

Hadmut Danisch wrote:

[#7098] Design contracts and refactoring (was Re: mathn: ugly warnings) — mathew <meta@...> 2006/01/10

Daniel Berger wrote:

[#7118] Re: Design contracts and refactoring (was Re: mathn: ugly warnings) — mathew <meta@...> 2006/01/12

*Dean Wampler *<deanwampler gmail.com> writes:

[#7226] Fwd: Re: Question about massive API changes — "Sean E. Russell" <ser@...>

Hello,

23 messages 2006/01/28
[#7228] Re: Question about massive API changes — Caleb Tennis <caleb@...> 2006/01/28

>

Re: mathn: ugly warnings

From: Daniel Berger <Daniel.Berger@...>
Date: 2006-01-10 15:54:46 UTC
List: ruby-core #7097
Hadmut Danisch wrote:
> Hi,
> 
> I was just looking for the origin of ugly warnings in a ruby
> script. Tracked this back to one of the ruby libraries (ruby 1.8.4):
> 
> % ruby -w /usr/lib/ruby/1.8/mathn.rb
> /usr/lib/ruby/1.8/mathn.rb:19: warning: method redefined; discarding old gcd2
> /usr/lib/ruby/1.8/mathn.rb:109: warning: discarding old /
> /usr/lib/ruby/1.8/mathn.rb:113: warning: discarding old /
> /usr/lib/ruby/1.8/mathn.rb:119: warning: method redefined; discarding old inspect
> /usr/lib/ruby/1.8/mathn.rb:232: warning: method redefined; discarding old sqrt
> 
> 
> 
> While it is obvious that mathn needs to redefine some functions, it's
> still ugly. Any idea how to avoid the warnings and still keeping
> things under ruby -w ?
> 
> regards

I agree.  It looks like mathn, rational, complex and matrix could all use some 
cleanup.  Unfortunately, without any unit tests (that I could find, either in 
the ruby distro or rubicon), I'm afraid to touch anything.

If someone well versed in mathematics (i.e. not me) could whip up some test 
cases and provide patches, that would be swell.

- Dan


In This Thread