Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Re: Implementing a Mixin Class (please explain?)

by Belgarion (Chaplain)
on May 31, 2004 at 21:09 UTC ( [id://357893]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re: Implementing a Mixin Class (please explain?)
in thread Implementing a Mixin Class

One definition of a mixin can be found at http://en.wikipedia.org/wiki/Mixin.

  • Comment on Re: Re: Implementing a Mixin Class (please explain?)

Replies are listed 'Best First'.
Re: Re: Re: Implementing a Mixin Class (please explain?)
by Seumas (Curate) on May 31, 2004 at 21:35 UTC
    Pretty brief description, but... from what I gather, it's nothing more than having a package that contains a bunch of methods that you allow to be exported and then having other classes import them?

    I have a ::Util class I fill with a handful of methods that don't particularly belong anywhere and aren't worth having their own class which I then import into other packages. Is this what is considered a "mixin"?

    Sorry if I come across a bit daft. Using Perl as a first exposure to OOP is brain-damaging.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://357893]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.