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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: teo at digiro dot net
New email:
PHP Version: OS:

 

 [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

Pull Requests

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: Sat Dec 21 16:01:28 2024 UTC