Bug #5343 Updated: a way of implementing class methods
| From: | jan@php.net | Date: | Sun, 06 Jan 2002 13:41:28 +0000 |
| Subject: | Bug #5343 Updated: a way of implementing class methods | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-76039@lists.php.net to get a copy of this message | ||
ID: 5343
Updated by: jan
Reported By: teo@digiro.net
Status: Open
Bug Type: Feature/Change Request
Operating System:
PHP Version: 4.0.1
New Comment:
can you propose this on engine2@lists.zend.com ?
Previous Comments:
------------------------------------------------------------------------
[2000-07-03 17:10:59] teo@digiro.net
How about:
function Foo::Bar() {
//implementation of method
Bar' in class Foo'
}
ppl usually separate the functionality in different files, and with
classes this is only possible by forwarding calls to regular
functions,
or by making use of derivation, which is not the best practice.
IMHO that would imply small changes to the parser (to recognize `::'
syntax), what do you think?
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=5343&edit=1