Re: Re: RC1, instanceof?
| From: | Michael Wallner | Date: | Tue, 09 Aug 2005 06:40:04 +0000 |
| Subject: | Re: Re: RC1, instanceof? | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-17658@lists.php.net to get a copy of this message | ||
Hi Andi Gutmans, you wrote:
> You are wrong because __autoload() *is* called and you can load the
> class on the-fly. The only problem is if the class does not exist in
> your code base, in which case, your application should blow up!
No insult intended, but this is just stubborn. You want to hear a good
reason/argument, so the reason is that there is no reason
- now please read slowly and thouroughly -
to *load* a class for checking an object to be of a specific class
- just because of the simple reason that the checked object can not
be of *that* class, because it doesn't exist.
So what if the mentioned generic way is too "generic"?
There could be a flag to let instanceof *not* die -
a little less generic but more suited for the actual needs IMO.
It may be too late for 5.1 but it's *never* "too late" for
future considerations.
Regards,
--
Michael - < mike(@)php.net >
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc