Re: getInstance and new self()
| From: | Ferdinand Beyer | Date: | Sun, 14 Mar 2004 20:02:27 +0000 |
| Subject: | Re: getInstance and new self() | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-8515@lists.php.net to get a copy of this message | ||
On 14 Mar 2004 at 19:31, Andi Gutmans wrote:
> self:: is always evaluated at compile-time and refers to the class it is
> defined in and not the concrete object/class.
>
> Andi
I think it would be a better for self to refer to the concrete class.
Otherwise it is not possible to access overridden static functions or
to instantiate the concrete class.
--
Ferdinand Beyer
<fb@fbeyer.com>