> >> It's just one of my trivial ideas, that why don't us make it capable of > >> arbitrary casting operation rather than limiting it just for string casts?
Hmm, funny English.. I've got no idea why I wrote it this way. > > i agree here. this can be important for external integration e.g. Java and > > COM > > 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. Moriyoshi -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php