in reply to Reblessing yourself

Howdy!

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.

yours,
Michael

Replies are listed 'Best First'.
Re^2: Reblessing yourself
by Ovid (Cardinal) on Apr 17, 2007 at 12:39 UTC