Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

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

by etcshadow (Priest)
on Jun 02, 2004 at 20:42 UTC ( #359728=note: print w/replies, xml ) Need Help??

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

A way of thinking of a mixin is: it's a bundle of functionality that can be implemented on top of another bundle of base functionality.

For example... if I take every class which has a ->Next() method and a ->Reset() method, then I can build all kinds of additional features, using nothing more than the supplied Next and Reset methods. I can make a greplike operator, I can build loops, etc.

Anyway, I think that's the key to understanding it: a mixin is a way of making it such that any class which can do X, Y, and Z, can also do P, D, and Q.

------------ :Wq Not an editor command: Wq

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://359728]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2022-05-29 02:54 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (101 votes). Check out past polls.