Josh Fuhs wrote:
Quoting Josh Fuhs <[EMAIL PROTECTED]>:
If I'm not mistaken, Java does not allow calls to static methods via
object instances.

Sorry, I retract this. Someone just showed me an example of it.


But it still seems like a bad practice.

So why? as i stated before the only difference between static and non-static member functions is that non-static members *may* change the state of an instance while static members definetly won't

From a callers point of view it is not even important to know
that one is calling a static member when invoking the member
function over an object instance, so why shouldn't it be callable
like that?

--
Hartmut Holzgraefe  <[EMAIL PROTECTED]>

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



Reply via email to