From: dblack@... Date: 2006-06-11T23:48:30+09:00 Subject: Re: Why the lack of mixing-in support for Class methods? Hi -- On Sun, 11 Jun 2006, Yukihiro Matsumoto wrote: > Hi, > > In message "Re: Why the lack of mixing-in support for Class methods?" > on Sun, 11 Jun 2006 22:43:11 +0900, transfire@gmail.com writes: > > |As you say, meta-programming can take care of it, but the biggest > |problem with meta-programming approaches is that everyone is using > |there own variation. > > Don't get me wrong. I didn't say that I wouldn't do nothing, and let > you help yourself using meta-programming features. I'd happy to add > the standard feature to achieve your goal, if it really is a generic > requirement. I like the solution that Daniel has shown in > [ruby-talk:196730]. It looks reasonable though I would recommend not calling the method "class_methods". That has the effect of freezing, in the language, the status and purpose of singleton methods on module and class objects. I know that "class methods" is of course a conventional way to refer to those methods, but I'd be sorry to see it introduced at the language level at the expense of the generality of the current design. David -- David A. Black (dblack@wobblini.net) Ruby Power and Light, LLC (http://www.rubypowerandlight.com) See what the readers are saying about "Ruby for Rails"! http://www.rubypowerandlight.com/quotes