Req #72775 [Csd->Dup]: C++ Style Method Overloading

From: Date: Sun, 07 Aug 2016 14:13:37 +0000
Subject: Req #72775 [Csd->Dup]: C++ Style Method Overloading
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-203037@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=72775&edit=1 ID: 72775 Updated by: nikic@php.net Reported by: fgheorghe at grosan dot co dot uk Summary: C++ Style Method Overloading -Status: Closed +Status: Duplicate Type: Feature/Change Request Package: *General Issues PHP Version: Next Major Version Assigned To: cmb Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2016-08-07 14:07:31] cmb@php.net Duplicate of request #69961. ------------------------------------------------------------------------ [2016-08-07 13:56:14] fgheorghe at grosan dot co dot uk Description: ------------ PHP made great progress by adding function return and parameter types. It would be great to push it to a new level and allow for C++ style method overloading, to enable different types of constructors, and function signatures. Use cases: Construct a class by a numeric id: __construct(int $id) Construct a class by a given string identifier: __construct(string $name) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=72775&edit=1

« previous php.bugs (#203037) next »