Hello Cristiano, Monday, August 4, 2003, 12:34:23 AM, you wrote:
CD> "Marcus BöRger" <[EMAIL PROTECTED]> escreveu na mensagem CD> news:[EMAIL PROTECTED] >> They are simply other types of function just don't care CD> call_user_function_ex() >> will take care of the differences. In other words you won't need CD> swicth/case. CD> switch/case removed and patch attached. Is it ok? CD> Should the method be named "to_string()", "tostring()" or "__tostring()" ? CD> Do you commit it to CVS ? No. Last Problem i see is that even when to_string() is available the default behavior can get called that seems wrong. If that function doesn't return a string it's an error and it shouldn't fall back to default in that case. However with that last change the thing would be ok from my point of view. Perhaps you could also add an interface for that function as sterling once suggested. But still you need to discuss this with the rest of the ppl here. Because eventually we might want to do it with overloadable object handlers. Since you're patching the engine the important guys to talk to are Zeev and Andi. Best regards, Marcus mailto:[EMAIL PROTECTED] -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php