Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33310 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 58149 invoked by uid 1010); 19 Nov 2007 13:31:22 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 58130 invoked from network); 19 Nov 2007 13:31:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Nov 2007 13:31:21 -0000 Authentication-Results: pb1.pair.com smtp.mail=indeyets@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=indeyets@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 66.249.90.178 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: 66.249.90.178 ik-out-1112.google.com Received: from [66.249.90.178] ([66.249.90.178:21525] helo=ik-out-1112.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DB/B4-23144-AFF81474 for ; Mon, 19 Nov 2007 08:30:36 -0500 Received: by ik-out-1112.google.com with SMTP id b35so749064ika for ; Mon, 19 Nov 2007 05:30:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; 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=MgWhMzrESAg3mV13jy5UJVq7DDDwOUBZSJmlFGYVcEE=; b=W/x82E4A9jGGhsIpp4TyPioVJCrhprgF1Foqe48cWC4bIISBc0fzkHurhyOPsFNGe+a+oe1UFQs6UQLXqQjvFOYKKkMzImE/sb9PWwfbvZ1LZJPYAbhyCLVr7bV1aHH6U6vXTdhxcjDGEr+eO4I/2YJa5AZw2OfHICgGc0nDi+Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=PsptdkQKSWGoAzXlD2200OCML+DitYJTFWhnaxYtKu+6hbagKx0PBIiB0BV12ob8yW5IBxu8ggavc0F3Sk1IssGBecctPjL4Nr3CEgvpjJHnYMGf22J/aH/9y3eP8Su3cxsTLV607qVJFCuyhJk0QjjMeoXfnCEbrbRrjJbkYUk= Received: by 10.150.140.6 with SMTP id n6mr526860ybd.1195478668634; Mon, 19 Nov 2007 05:24:28 -0800 (PST) Received: by 10.150.52.9 with HTTP; Mon, 19 Nov 2007 05:24:28 -0800 (PST) Message-ID: Date: Mon, 19 Nov 2007 16:24:28 +0300 To: "Lukas Kahwe Smith" Cc: "PHP Developers Mailing List" In-Reply-To: <24B993AF-C3D4-4144-AD21-EA745B309CAC@pooteeweet.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <474021AD.3020902@avalon.aut.bme.hu> <06685887-B14F-4933-8F71-DFAB0D9B0E53@pooteeweet.org> <24B993AF-C3D4-4144-AD21-EA745B309CAC@pooteeweet.org> Subject: Re: [PHP-DEV] late static binding php6 From: indeyets@gmail.com ("Alexey Zakhlestin") On 11/19/07, Lukas Kahwe Smith wrote: > > On 19.11.2007, at 14:05, Alexey Zakhlestin wrote: > > > On 11/19/07, Lukas Kahwe Smith wrote: > > > >> I think the point of Stas reply was to use self:: instead of > >> parent::. > > > > how would self help? that would mean calling this exact method, not > > the method of parent-class > > that way you could add the class name as a second parameter to the > parent method, without having to type it out in every call. Anyways, > I think the current situation is quite clear to me. then again, I > forgot if we also added new magic constants to go along with > __CLASS__ for this (aka __SELF__)? that's possible, but some more "magic" seems to be "natural" here. As I and several others proposed earlier the best option would be: parent::method() thinks it is the same class as a caller ClassName::method() thinks it is ClassName this would be the least-surprise situation -- Alexey Zakhlestin http://blog.milkfarmsoft.com/