Re: Re: Static weirdness..
| From: | Hartmut Holzgraefe | Date: | Thu, 19 Feb 2004 15:04:43 +0000 |
| Subject: | Re: Re: Static weirdness.. | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-7994@lists.php.net to get a copy of this message | ||
Marcus Boerger wrote:
A static and a non static member function are two absolute completley different things.sure they are (in certain ways), but when *calling* them (from a class users point of view, not an implementors point of view) the only difference is that the static member is guaranteed to not change the state of an instance while a non-static member is not besides that there is no difference for a caller/user of an instance and forcing him to know which member functions are static and which aren't just adds a level of inconvenience without gain so IMHO $instance->static() has to work classname::static() obviously has to work, too $instance::static() is optional -- Hartmut Holzgraefe <hartmut@php.net>