From: Paul Brannan Date: 2007-12-29T00:37:17+09:00 Subject: Re: Matz says namespaces are too hard to implement - why? On Sat, Dec 29, 2007 at 12:32:10AM +0900, Rick DeNatale wrote: > but what about this: > > def divide(a, b) > use namespace Mathn > a / b > end > > Now, I'd think you would want: > > 1 / 2 #=> 1 > > divide(1,2) #=> 1 / 2 > > The problem here it seems that you would need more than attach a > namespace to an object. Here we want the Integer/Fixnum classes to > act differently in the context of executing the divide method, even > for objects instantiated outside and passed in. I'm having trouble understanding why this case wouldn't work as expected. Can you elaborate? Thanks, Paul