Re: pearifying metabase: preparing phase 2
| From: | Joakim Andersson | Date: | Tue, 05 Feb 2002 09:51:58 +0000 |
| Subject: | Re: pearifying metabase: preparing phase 2 | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-4412@lists.php.net to get a copy of this message | ||
On Tue, Feb 05, 2002 at 10:32:54AM +0100, Bertrand Mansion wrote:
> Is that a php specific function or are there any other languages around
> using a similar function ? It is the first time I hear about such a feature.
> It can be very interesting.
Ruby's mixin functionality is kind of similar. It allows a class to
include a module and the module's methods then become available as
methods of that class.
You can read more about mixin modules and see some examples at
http://www.rubycentral.com/book/classes.html
scroll down to the Mixin
Modules section.
--
Joakim Andersson ; tyrak@borgship.net ; http://borgship.net/~tyrak/