Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:42334 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13101 invoked from network); 18 Dec 2008 14:14:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Dec 2008 14:14:50 -0000 Authentication-Results: pb1.pair.com smtp.mail=nrixham@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=nrixham@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.21 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: nrixham@gmail.com X-Host-Fingerprint: 209.85.218.21 mail-bw0-f21.google.com Received: from [209.85.218.21] ([209.85.218.21:34360] helo=mail-bw0-f21.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FA/90-09584-9DA5A494 for ; Thu, 18 Dec 2008 09:14:50 -0500 Received: by bwz14 with SMTP id 14so1280652bwz.23 for ; Thu, 18 Dec 2008 06:14:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=D3U1aL4cHKQIJt9kPiQZAjylFxxB5vDx1NDMH4wJtKU=; b=NEWDXtNltDO6ze4zKYpGXZRtrb6Nif69E2APpqeRmH+z0cFLwko07ZN1UYSbuVneey ON3ZshHRc4Fd/YerCUfdQLatir2GTOminTNEL4ocC2By9SpYD1a/gwGwYMxMsoK8e8Uk Ly6TRQrczWHs1w7NLeiWkzomyFa1KMEwMEDXM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=j1caeoFTmbckoCzp6Cal6Cf2WCW1Hy7SKwiwaU4aW9mTnUBzJcSzYMRfmwcS1k50c2 H8u5ctdSZFACYRSmLqP61MqAxQVjqz/kNs2vW0YIUdh0q/Ei5nsMowCjDFcqBPUewI+z IsfStAWV2I9OL3uDdGx21stAi4C29bgjTk0T4= Received: by 10.181.234.5 with SMTP id l5mr678771bkr.124.1229609686226; Thu, 18 Dec 2008 06:14:46 -0800 (PST) Received: by 10.180.239.13 with HTTP; Thu, 18 Dec 2008 06:14:46 -0800 (PST) Message-ID: Date: Thu, 18 Dec 2008 14:14:46 +0000 To: "Dave Ingram" Cc: internals@lists.php.net In-Reply-To: <494A3B12.80509@dmi.me.uk> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_26123_24518769.1229609686213" References: <69.22.48223.7E389494@pb1.pair.com> <494A3B12.80509@dmi.me.uk> Subject: Re: [PHP-DEV] Q on Primitives From: nrixham@gmail.com ("Nathan Rixham") ------=_Part_26123_24518769.1229609686213 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 2008/12/18 Dave Ingram > > Also, what about this case: > > class MyTestClass { > public function blah(Foo $f); > public function blah(Bar $b); > public function blah($v); > } > > I would argue that the most specific function should be called, but how > costly would that be to determine? What if you have a "Baz" subclass of > Bar, but no corresponding method? What if Bar itself is a subclass of Foo? > > Ideally a most specific first approach, failing that I'd suggest taking doing it the nearest first way (like we do when catching exceptions) ? ------=_Part_26123_24518769.1229609686213--