Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33437 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47025 invoked by uid 1010); 26 Nov 2007 09:41:32 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 47010 invoked from network); 26 Nov 2007 09:41:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Nov 2007 09:41:32 -0000 Authentication-Results: pb1.pair.com header.from=indeyets@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=indeyets@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.170.186 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: indeyets@gmail.com X-Host-Fingerprint: 64.233.170.186 rn-out-0910.google.com Linux 2.4/2.6 Received: from [64.233.170.186] ([64.233.170.186:62444] helo=rn-out-0102.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 92/B2-28547-BC49A474 for ; Mon, 26 Nov 2007 04:41:31 -0500 Received: by rn-out-0102.google.com with SMTP id s28so99107rnb for ; Mon, 26 Nov 2007 01:41:29 -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:content-transfer-encoding:content-disposition:references; bh=zqWqYTOnM6CuYehh1+KGCZ7sqQMsm+cSuFT8WnDaVjs=; b=cSZtW6QNXqE/OVOjJky1keVjVhf6bm0ixBCQSybV4JRdSR3IDF+iPXzx5Z6Ulm8uNgBjMvIQAAvhId3pZfg1S6JP5/3k2DUIC4Aa0K8NoMPmkJN5ExyoM0j+aZR6o6sejeX4NyqwC4dsdupkWoNehhxd8GolJ7SbSUVjfCBqqiU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=TLSBYkBLdIG9KlZa+Lqo3R/Rv01zocxyJAKXDgxyNwO+zaQ9oWCbYhgAq++IQ5s5KfWnHZ78Mm1Xn03+Td343vqf6LTRZ+GBOrHHK6MhujBzeDeEe4vP1R3gpggzS4bUnUIbieMr+Y3ZURNz0JEKbJe1kHcWGLpA/PAkiXh1rdo= Received: by 10.150.146.14 with SMTP id t14mr276790ybd.1196070088994; Mon, 26 Nov 2007 01:41:28 -0800 (PST) Received: by 10.150.57.12 with HTTP; Mon, 26 Nov 2007 01:41:28 -0800 (PST) Message-ID: Date: Mon, 26 Nov 2007 12:41:28 +0300 To: "Stanislav Malyshev" Cc: "Mike Lively" , "PHP Developers Mailing List" In-Reply-To: <474A9152.5040009@zend.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4740C654.3020302@digitalsandwich.com> <4741DC81.6000506@zend.com> <4741D574.2020800@digitalsandwich.com> <474247A2.5050301@zend.com> <4741D9D1.6030106@digitalsandwich.com> <47424B4F.2@zend.com> <4743CED7.5050402@avalon.aut.bme.hu> <4749F328.8080506@digitalsandwich.com> <474A9152.5040009@zend.com> Subject: Re: [PHP-DEV] [PATCH] late binding for parent (and other options) - Was Re: [PHP-DEV] late static binding php6 From: indeyets@gmail.com ("Alexey Zakhlestin") On 11/26/07, Stanislav Malyshev wrote: > > I believe this first patch is the proper way to go. It feels > > "natural", "intuitive", etc. > > I don't see how making parent::foo() and A::foo() work differently is > either "natural" or "intuitive". A::foo() doesn't mean any inheritance at all. "A" can be completely unrelated class parent::foo() means inheritance and inheritance means "extending" and "keeping context". So, "parent::foo()" means "call method of parent-class, but remember, that we extended that class, so keep context" -- Alexey Zakhlestin http://blog.milkfarmsoft.com/