Re: Re: Static weirdness..

From: Date: Mon, 23 Feb 2004 10:18:43 +0000
Subject: Re: Re: Static weirdness..
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-8081@lists.php.net to get a copy of this message
Josh Fuhs wrote:
Quoting Josh Fuhs <fuhs@purdue.edu>: 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 <hartmut@php.net>

« previous php.internals (#8081) next »