Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:9443 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78075 invoked by uid 1010); 21 Apr 2004 09:13:42 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 77979 invoked from network); 21 Apr 2004 09:13:41 -0000 Received: from unknown (HELO xaxa.search.ch) (195.141.85.118) by pb1.pair.com with SMTP; 21 Apr 2004 09:13:41 -0000 Received: from localhost (localhost [127.0.0.1]) by xaxa.search.ch (Postfix) with ESMTP id D88F96CFA2; Wed, 21 Apr 2004 11:13:38 +0200 (CEST) Received: by xaxa.search.ch (Postfix, from userid 65534) id C086C6D870; Wed, 21 Apr 2004 11:13:37 +0200 (CEST) Received: from cschneid.com (ultrafilter2-i [192.168.85.3]) by xaxa.search.ch (Postfix) with ESMTP id 28CFF6CFA2; Wed, 21 Apr 2004 11:13:37 +0200 (CEST) Message-ID: <40863B3F.2060700@cschneid.com> Date: Wed, 21 Apr 2004 11:13:35 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040114 X-Accept-Language: en-us, en, de-ch MIME-Version: 1.0 To: Michael Walter Cc: internals@lists.php.net References: <40858E36.2070200@cschneid.com> <40860773.6070406@leetspeak.org> In-Reply-To: <40860773.6070406@leetspeak.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on xaxa.search.ch X-Spam-Level: X-Spam-Status: No, hits=-4.9 required=5.0 tests=BAYES_00 autolearn=ham version=2.63 X-Virus-Scanned: by AMaViS 0.3.12pre8 Subject: Re: [PHP-DEV] Re: Multi-Method Dispatch in PHP 5.1? From: cschneid@cschneid.com (Christian Schneider) Michael Walter wrote: > How exactly do you think are default parameters related to the issue, anyway? Java uses multi-method dispatch to work around missing default values: function foo($a, $some_flag) { ... } function foo($a) { foo($a, false); } instead of function foo($a, $some_flag = false) { ... } > I assume you are you aware of what dynamic dispatch is trying to solve Whatever example I'd give you'd probably say it's not the relevant one. But if you give me a use case for dynamic dispatch I show you how I'd do it in PHP. Maybe we should take that off list though and present just the result of our research :-) - Chris