The child classes could have a method to create an instance from a given parent class instance, and you can implement it any way you like - rebless the object, or rebless its clone, and so on, plus all the checks you need to allow the transition. Thus, the "dirty" code stays in the class and doesn't pollute your users' code.
In reply to Re: Reclassifying an object
by choroba
in thread Reclassifying an object
by Amblikai
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |