Re: Re: [Zend Engine 2] Re: [PHP-DEV] [patch]__string()method
| From: | Moriyoshi Koizumi | Date: | Thu, 04 Sep 2003 18:13:01 +0000 |
| Subject: | Re: Re: [Zend Engine 2] Re: [PHP-DEV] [patch]__string()method | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-4385@lists.php.net to get a copy of this message | ||
> > A default __toString() doesn't hinder an extension that interoperates with
> > Java/COM or whatever external objects in anyway to handle their casting as
> > they like. In fact the interface approach would deliver the ability to hide
> > those internal differences so that the user can use the same interfaces for
> > all classes that provide such casting.
> >
>
> What are you referring to as "interface approach"? It seems that has
> nothing to do with casts.
Sorry, looks like I missed several posts. But the interface approach
might mess something when it comes to marshalling. Should a wrapped
string container object (e.g. java.lang.String) implement a PHP
interface anyway in case we demand it as a PHP string?
Moriyoshi