Re: "Bless"ing an object
| From: | SLanger at spirit21 dot de | Date: | Thu, 27 Nov 2003 09:11:40 +0000 |
| Subject: | Re: "Bless"ing an object | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-171179@lists.php.net to get a copy of this message | ||
Hello
Just out of curiosity why do you need such a function? I'm no perl
programmer and have very little knowledge of the language ... yet ; )
but the way you describe it it seems to me that you have a fundamentle
design flaw in your script if you need to change types on the fly that are
in no way related to each other. (Even in a typeless language such as PHP)
My suggestion:
For the cases you need the blessing create a proxy object or an adapter
object to give you access to the needed stuff.
Regards
Stefan Langer