PHP 4.0 Bug #5343: a way of implementing class methods
| From: | teo at digiro dot net | Date: | Mon, 03 Jul 2000 15:11:00 +0000 |
| Subject: | PHP 4.0 Bug #5343: a way of implementing class methods | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-23221@lists.php.net to get a copy of this message | ||
From: teo@digiro.net
Operating system:
PHP version: 4.0.1
PHP Bug Type: Feature/Change Request
Bug description: a way of implementing class methods
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?