> > 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

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to