php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #5343 a way of implementing class methods
Submitted: 2000-07-03 17:10 UTC Modified: 2002-10-27 19:05 UTC
From: teo at digiro dot net Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0.1 OS:
Private report: No CVE-ID: None
 [2000-07-03 17:10 UTC] teo at digiro dot 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?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-01-06 08:41 UTC] jan@php.net
can you propose this on  engine2@lists.zend.com ?
 [2002-10-27 19:05 UTC] sterling@php.net
the issue has been considered already...
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 11:01:30 2024 UTC