Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
Perl Monk, Perl Meditation
 
PerlMonks  

Re^8: Informal Poll: Traits (Long Post Warning!)

by adrianh (Chancellor)
on Nov 21, 2005 at 12:33 UTC ( [id://510502]=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 The need to rebless (was: Informal Poll: Traits)
in thread Informal Poll: why aren't you using traits?

Can you (or anyone) think of any case where reblessing is useful, in the sense that solving the same problem another way would be awkward?

I've seen it used with a class hierarchy that was based around incrementally parsing a serialised data structure. As the data was parsed it as reblessed to more and more specific classes as more was known about the structure in question. Quite neat.

I've also occasionally used reblessing to implement state transitions.

  • Comment on Re^8: Informal Poll: Traits (Long Post Warning!)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://510502]
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.