Hello Andi, On Sat, 15 Oct 2005, Andi Gutmans wrote:
> After the millions of discussions on this topic it would have been better to > share this patch with everyone before commiting. I did, last week: http://news.php.net/php.internals/19482 > In any case, as I could never think of a better syntax to deal with the > somewhat harmless ambiguity of default value and "allowing" null, I don't mind > having this patch. It should be documented though that this syntax comes to > serve both purposes. > I do suggest though, that you perfect the patch to make sure that using values > other than null is a compile-time error and not only caught at run-time. I'm > talking about the following function decleration: > > function testNull(MyClass $obj = 1) { > } Yes, that would make sense. I'll have a look at that. regards, Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php