Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62908 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75294 invoked from network); 8 Sep 2012 17:29:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Sep 2012 17:29:37 -0000 Authentication-Results: pb1.pair.com smtp.mail=lars@strojny.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=lars@strojny.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain strojny.net from 46.4.40.248 cause and error) X-PHP-List-Original-Sender: lars@strojny.net X-Host-Fingerprint: 46.4.40.248 milch.schokokeks.org Received: from [46.4.40.248] ([46.4.40.248:40907] helo=milch.schokokeks.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 01/3A-12482-F708B405 for ; Sat, 08 Sep 2012 13:29:36 -0400 Received: from [192.168.178.32] (ppp-188-174-18-174.dynamic.mnet-online.de [::ffff:188.174.18.174]) (AUTH: PLAIN lars@schokokeks.org, TLS: TLSv1/SSLv3,128bits,AES128-SHA) by milch.schokokeks.org with ESMTPSA; Sat, 08 Sep 2012 19:29:32 +0200 id 0000000000000023.00000000504B807C.00007390 Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1486\)) In-Reply-To: <504AD3C8.5090000@ralphschindler.com> Date: Sat, 8 Sep 2012 19:29:31 +0200 Cc: internals@lists.php.net Content-Transfer-Encoding: quoted-printable Message-ID: References: <4F89D4F1.8070009@ralphschindler.com> <4F8CEB3B.4080702@ralphschindler.com> <4F8DA14F.1030204@sugarcrm.com> <4F8DCAC7.2050302@ralphschindler.com> <4F8DF2B6.4030709@sugarcrm.com> <4F8DFB17.7030509@sugarcrm.com> <4F8F1D0C.2030904@sugarcrm.com> <504AD3C8.5090000@ralphschindler.com> To: Ralph Schindler X-Mailer: Apple Mail (2.1486) Subject: Re: [PHP-DEV] New Feature: Fully qualified class name resolution as scalar with class keyword From: lars@strojny.net (Lars Strojny) Hi Ralph, I still like the proposal. Am 08.09.2012 um 07:12 schrieb Ralph Schindler = : [...] >>> But yes, I agree that runtime resolution only duplicates existing >>> behavior, so it isn't really necessary (you could argue thought that >>> self::class similarly also only replicates the existing __CLASS__). = It >>> would be nice for consistency in my eyes, but I'm good without it = too >=20 > The current patch allows for the following: >=20 > self::class -> resolves to name in active_class_entry > static::class -> resolves to FCALL get_called_class() > parent::class -> resolves to FCALL get_parent_class() >=20 > I would have liked to have done parent::class w/o FCALL but the = active_class_entry's parent is empty even when inside of a class = extending another class. >=20 [...] What I find absolutely confusing is the use of Class vs. CLASS vs. class = for constant names. Let=92s limit the translation to FQCN. cu, Lars=