RE: [PHP-DEV] Type hints with null default values

2004-10-16 Thread Robert Silva
Re-reading the previous discussion, it seems like the functionality that people wanted was to have an optional typed argument. In converting the .NET Framework library over to PHP, there are many instances where having optional typed params would have been handy. The Framework makes heavy use of

RE: [PHP-DEV] Type hints with null default values

2004-10-16 Thread Cristiano Duarte
Robert Silva wrote: > PHP doesn't have a concept of a "null" reference though. So to say that > every other language allows it is not a valid argument. The other > languages allow it because the language supports it. And that seems to be > what the arguments against it centered around. > > I thin

Re: [PHP-DEV] Type hints with null default values

2004-10-16 Thread Jevon Wright
Alternatively, you could try to support polymorphism in classes :o) Then you wouldn't need null references... class X { function a(); function a(MyObj $b); } Jevon Wright - Original Message - From: "Robert Silva" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, October

[PHP-DEV] CVS

2004-10-16 Thread Sascha Schumann
I've reenabled cvs access. Please send me the complete output of "cvs commit", if you receive warnings about uninitialized variables at the end. - Sascha -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DEV] Type hints with null default values

2004-10-16 Thread Robert Silva
PHP doesn't have a concept of a "null" reference though. So to say that every other language allows it is not a valid argument. The other languages allow it because the language supports it. And that seems to be what the arguments against it centered around. I think a compromise would be to allow

Re: [PHP-DEV] Type hints with null default values

2004-10-16 Thread Cristiano Duarte
Georg Richter wrote: > Am Sa, den 16.10.2004 schrieb Cristiano Duarte um 21:13: >> Hi @ll, >> >> Now that 5.0.3 is out > > Doohh 5.0.3? I didn't see any announcement and I planned to commit > several stuff before :( Sorry Georg. I meant: Now that 5.0.2 is out... Cristiano Duarte -- PHP Intern

RE: [PHP-DEV] Type hints with null default values

2004-10-16 Thread Cristiano Duarte
Robert Silva wrote: > I think Marcus B's final comments in the original discussion are right on > track. > > Stab: I voted for NULL type hinted arguments before I voted against them. > > The main thing that changed my mind, is that in PHP there is no such thing > as a NULL object. I came to the

RE: [PHP-DEV] Type hints with null default values

2004-10-16 Thread Robert Silva
I think Marcus B's final comments in the original discussion are right on track. Stab: I voted for NULL type hinted arguments before I voted against them. The main thing that changed my mind, is that in PHP there is no such thing as a NULL object. I came to the conclusion that PHP wasn't broken,

[PHP-DEV] Type hints with null default values

2004-10-16 Thread Cristiano Duarte
Hi @ll, Now that 5.0.3 is out, maybe it's time to bring back that old problem left in May: type hints and null default values. This feature was dropped since no one could come with a reasonable solution. So, for now, there is no (engine) way to have a parameter that can only be of some class or

[PHP-DEV] Re: [PECL-DEV] Re: CVS

2004-10-16 Thread Derick Rethans
On Sat, 16 Oct 2004, Mehdi Achour wrote: > Is it possible to make the affected directories read-only ? Nope. 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/u

[PHP-DEV] Re: CVS

2004-10-16 Thread Mehdi Achour
Is it possible to make the affected directories read-only ? Mehdi Derick Rethans wrote: Hello Folks, I just shutdown the CVS server because there are still no diffs being send out. This means that there is no control over who commits what anymore resulting in the probability of bad code into CVS. U

[PHP-DEV] Re: CVS

2004-10-16 Thread Mehdi Achour
Is it possible to make the affected directories read-only ? Mehdi Derick Rethans wrote: Hello Folks, I just shutdown the CVS server because there are still no diffs being send out. This means that there is no control over who commits what anymore resulting in the probability of bad code into CVS. U

[PHP-DEV] Re: CVS

2004-10-16 Thread Mehdi Achour
Is it possible to make the affected directories read-only ? Mehdi Derick Rethans wrote: Hello Folks, I just shutdown the CVS server because there are still no diffs being send out. This means that there is no control over who commits what anymore resulting in the probability of bad code into CVS. U

[PHP-DEV] CVS

2004-10-16 Thread Derick Rethans
Hello Folks, I just shutdown the CVS server because there are still no diffs being send out. This means that there is no control over who commits what anymore resulting in the probability of bad code into CVS. Until the CVS commit mails work again the CVS will remain down. This problem does not se

RE: [PHP-DEV] Fwd: New VM Architecture

2004-10-16 Thread Robert Silva
The script approach is much cleaner than the MACROs. Maintaining the script won't be a lot of extra work. It's a shame computed gotos arent more widely supported. Bob -Original Message- From: Andi Gutmans [mailto:[EMAIL PROTECTED] Sent: Friday, October 15, 2004 9:16 PM To: [EMAIL PROTEC