From: Tobias DiPasquale Date: 2002-03-31T06:12:58+09:00 Subject: Re: Why isn't Math object-oriented? On Sat, 30 Mar 2002 15:43:41 -0500, Bil Kleb wrote: > Math.sin(number) > > which looks alot like Java. > > What happened? Why did the idiom change? Why isn't Math implemented as > a mixin for the Numeric class a'la Enumerable or Comparable or Kernal, > etc.? Good question. I tried to do this: class Fixnum include Math end 354.sin However, this failed because all of Math's methods are class methods This doesn't seem to make any sense, since Math is a Module. Anyone know the reasoning behind this one? Matz? << T o b i a s D i P a s q u a l e >> web: http://cbcg.net/ mailto:anany@ece.villanova.edu trade: Software Engineer skillset: Linux/BSD/UNIX/C/Java/Ruby