#5343 [Opn->Csd]: a way of implementing class methods

From: Date: Mon, 28 Oct 2002 01:05:48 +0000
Subject: #5343 [Opn->Csd]: a way of implementing class methods
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-23480@lists.php.net to get a copy of this message
ID: 5343 Updated by: sterling@php.net Reported By: teo@digiro.net -Status: Open +Status: Closed Bug Type: Feature/Change Request PHP Version: 4.0.1 New Comment: the issue has been considered already... Previous Comments: ------------------------------------------------------------------------ [2002-01-06 08:41:28] jan@php.net can you propose this on engine2@lists.zend.com ? ------------------------------------------------------------------------ [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

« previous php.bugs (#23480) next »