Re: late static binding php6
| From: | Jeff Moore | Date: | Sun, 25 Nov 2007 22:45:19 +0000 |
| Subject: | Re: late static binding php6 | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-33428@lists.php.net to get a copy of this message | ||
Hi,
May I suggest renaming get_called_class() to get_static_class() to correspond with the use of the static:: keyword for late binding.
parent:: and get_parent_class() [no parameters] should also correspond when used in a static method context.
My preference is that parent:: be late binding. I would also like to see an early bound __parent__ constant along the lines of __class__.
Best Regards,
Jeff