|
|
| 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.
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.
In Section
Meditations
|
|
||||||||||||||||||||||||