>What does everyone think about disallowing non-instance calls 
>to methods which are not declared static? Currently, this works:

I like the idea, but wouldn't that cause some problems with BC?


-~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~-
John Coggeshall
john at coggeshall dot org                  http://www.coggeshall.org/
-~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~-


>-----Original Message-----
>From: Andrei Zmievski [mailto:[EMAIL PROTECTED] 
>Sent: Friday, April 04, 2003 9:53 AM
>To: PHP Internals; [EMAIL PROTECTED]
>Subject: [PHP-DEV] Static and non-static methods
>
>
>What does everyone think about disallowing non-instance calls 
>to methods which are not declared static? Currently, this works:
>
>       class A {
>         function B() { return 1; }
>       }
>
>       A::B();
>
>But really, if B was intended to be used that way, it should 
>have been declared as static.
>
>-Andrei                                       
>http://www.gravitonic.com/
>* If it ain't broken, it doesn't 
>have enough features yet. *
>
>-- 
>PHP Internals - PHP Runtime Development Mailing List
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>


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

Reply via email to