I was starting to type "state machine" when I decided to grab the GoF book.
One of the behavioral patterns is "State". "Allow an object to alter its behavior when its internal state changes. The object will appear to change its class."
I think that's exactly it. I suspect that most OO setups don't allow an object to change its class. Perl lets you do that explicitly.
In reply to Re: Reblessing yourself
by herveus
in thread Reblessing yourself
by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |