Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:9422 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92199 invoked by uid 1010); 20 Apr 2004 14:50:26 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 92167 invoked from network); 20 Apr 2004 14:50:26 -0000 Received: from unknown (HELO mail.de-punkt.de) (62.4.81.205) by pb1.pair.com with SMTP; 20 Apr 2004 14:50:26 -0000 Received: (qmail 19229 invoked by uid 508); 20 Apr 2004 14:50:25 -0000 Received: from sb@sebastian-bergmann.de by webby by uid 511 with qmail-scanner-1.16 (f-prot: 3.12. spamassassin: 2.60. Clear:. Processed in 0.341723 secs); 20 Apr 2004 14:50:25 -0000 Received: from unknown (HELO wopr) (80.142.49.251) by mail.de-punkt.de with SMTP; 20 Apr 2004 14:50:24 -0000 Received: from localhost [127.0.0.1] by wopr (192.168.2.100) (userid 8) with Hamster-NewsToMail-Gate (Classic Hamster Version 2.0 Build 2.0.5.0) ; Tue, 20 Apr 2004 16:50:11 +0200 Date: Tue, 20 Apr 2004 16:50:11 +0200 Organization: www.sebastian-bergmann.de User-Agent: Mozilla Thunderbird 0.5 (Windows/20040207) X-Accept-Language: en-us, en To: internals@lists.php.net Sender: admin Lines: 17 X-Qmail-Scanner-Message-ID: <108247262552619220@webby> Subject: Multi-Method Dispatch in PHP 5.1? From: sebastian@php.net (Sebastian Bergmann) Message-ID: Since we introduce class type hints in PHP 5.0 I think it would be a good thing [tm] to add multi-method dispatch in PHP 5.1. What I mean by this would be to allow for the following: class Foo { public function doSomething(Foo $foo) {} public function doSomething(Bar $bar) {} } How complicated would this be to implement? -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Das Buch zu PHP 5: http://professionelle-softwareentwicklung-mit-php5.de/