From: Robert Dober Date: 2008-07-26T01:34:51+09:00 Subject: Re: simple module for "count my instances" behaviour On Fri, Jul 25, 2008 at 3:22 PM, Julien Thewys wrote: > Robert Dober wrote: >>> By the way, I can not think of a legitimate use of redefining new. >> Do you mean my code is not legitimate? >> I think this is precisely a good use case. > > I meant other than for hacking purpose. > -- > Posted via http://www.ruby-forum.com/. > > Yes but that was my point, I guess if you wanted to expose this method of tracking, you should check if your classes implement new for some hacking reason ;). I would prefer the term "metaprogramming" though. I just wanted to be sure that you are aware of that, if we redefine new in a legitimate way, someone else might have. Cheers Robert -- http://ruby-smalltalk.blogspot.com/ There's no one thing that's true. It's all true. -- Ernest Hemingway