Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63001 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81293 invoked from network); 14 Sep 2012 09:28:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Sep 2012 09:28:37 -0000 Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.199.177.89 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 212.199.177.89 il-mr1.zend.com Received: from [212.199.177.89] ([212.199.177.89:35194] helo=il-mr1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4F/4B-31416-3C8F2505 for ; Fri, 14 Sep 2012 05:28:37 -0400 Received: from il-gw1.zend.com (unknown [10.1.1.22]) by il-mr1.zend.com (Postfix) with ESMTP id 729F960764; Fri, 14 Sep 2012 12:21:51 +0300 (IDT) Received: from tpl2.home (10.1.10.10) by il-ex2.zend.net (10.1.1.22) with Microsoft SMTP Server (TLS) id 14.1.255.0; Fri, 14 Sep 2012 12:28:27 +0300 Message-ID: <5052F8BE.5080109@zend.com> Date: Fri, 14 Sep 2012 13:28:30 +0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120828 Thunderbird/15.0 MIME-Version: 1.0 To: Patrick Schaaf CC: internals , Ralph Schindler References: <504F4D33.4070306@ralphschindler.com> <5051968E.7030908@zend.com> <5052474B.5050706@ralphschindler.com> <5052E5EC.2030103@zend.com> In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.1.10.10] Subject: Re: [PHP-DEV] [VOTE] ::class feature to resolve namespaced class names to scalars From: dmitry@zend.com (Dmitry Stogov) In general it'll work, but it'll waste memory. Thanks. Dmitry. On 09/14/2012 12:33 PM, Patrick Schaaf wrote: > Hi, > > if it looks, smells, and works like a class constant, can't just BE a > class constant, automatically created, but just as-if "const class = > 'xxx';" had been present in the definition in the first place? > > Not that I know php code internals in any thorough way, but I imagine > that that approach would obviate the need for any new opcodes. > > best regards > Patrick >