Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: Strategy Handles

by jdporter (Canon)
on Jan 04, 2006 at 19:50 UTC ( #520996=note: print w/ replies, xml ) Need Help??


in reply to Re: Strategy Handles
in thread Strategy Handles

If you need to change what output you provide by dynamically changing inheritence then I don't see how you can say this alternate technique is OO based.

I'm not into making rigorous definitions of OO, nor am I arguing that this technique is or isn't OO in any kind of purist sense. But considering that it is all about inheritance of methods, I don't know what other drawer to file it under. Remember that Perl's OO is not (much) like any other language's OO. One of the ways in which it's different comes from the highly dynamic nature of the language itself. And this technique is merely an example of that.

If this were available I think I would be pretty safe in saying that I would never make use of it.

It is available. And no, I don't actually expect anyone to make use of it. :-)

We're building the house of the future together.


Comment on Re^2: Strategy Handles
Re^3: Strategy Handles
by simon.proctor (Vicar) on Jan 05, 2006 at 09:42 UTC
    > But the fact that it is all about inheritance of methods,

    Yeah thats true but it is quite evil. And in a monestary too ;).

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (11)
As of 2014-09-16 14:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (24 votes), past polls