Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62999 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72920 invoked from network); 14 Sep 2012 08:45:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Sep 2012 08:45:24 -0000 Received: from [127.0.0.1] ([127.0.0.1:4611]) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ECSTREAM id 3A/A9-31416-4AEE2505 for ; Fri, 14 Sep 2012 04:45:24 -0400 Authentication-Results: pb1.pair.com smtp.mail=php@bof.de; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=php@bof.de; sender-id=pass Received-SPF: pass (pb1.pair.com: domain bof.de designates 80.242.145.70 as permitted sender) X-PHP-List-Original-Sender: php@bof.de X-Host-Fingerprint: 80.242.145.70 mars.intermailgate.com Received: from [80.242.145.70] ([80.242.145.70:40516] helo=mars.intermailgate.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D2/F8-31416-0DBE2505 for ; Fri, 14 Sep 2012 04:33:21 -0400 Received: (qmail 13065 invoked by uid 1009); 14 Sep 2012 10:33:18 +0200 Received: from 209.85.210.170 by mars (envelope-from , uid 89) with qmail-scanner-1.25-st-qms (clamdscan: 0.96.2/15356. spamassassin: 3.3.1. perlscan: 1.25-st-qms. Clear:RC:1(209.85.210.170):. Processed in 0.102128 secs); 14 Sep 2012 08:33:18 -0000 X-Antivirus-MYDOMAIN-Mail-From: php@bof.de via mars X-Antivirus-MYDOMAIN: 1.25-st-qms (Clear:RC:1(209.85.210.170):. Processed in 0.102128 secs Process 13057) Received: from mail-iy0-f170.google.com (gmail@bof.de@209.85.210.170) by mars.intermailgate.com with RC4-SHA encrypted SMTP; 14 Sep 2012 10:33:18 +0200 Received: by iamm10 with SMTP id m10so3199467iam.29 for ; Fri, 14 Sep 2012 01:33:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.50.156.132 with SMTP id we4mr2144949igb.60.1347611596423; Fri, 14 Sep 2012 01:33:16 -0700 (PDT) Received: by 10.64.163.106 with HTTP; Fri, 14 Sep 2012 01:33:16 -0700 (PDT) Received: by 10.64.163.106 with HTTP; Fri, 14 Sep 2012 01:33:16 -0700 (PDT) In-Reply-To: <5052E5EC.2030103@zend.com> References: <504F4D33.4070306@ralphschindler.com> <5051968E.7030908@zend.com> <5052474B.5050706@ralphschindler.com> <5052E5EC.2030103@zend.com> Date: Fri, 14 Sep 2012 10:33:16 +0200 Message-ID: To: Dmitry Stogov Cc: internals , Ralph Schindler Content-Type: multipart/alternative; boundary=e89a8f13ec548001e504c9a54659 Subject: Re: [PHP-DEV] [VOTE] ::class feature to resolve namespaced class names to scalars From: php@bof.de (Patrick Schaaf) --e89a8f13ec548001e504c9a54659 Content-Type: text/plain; charset=ISO-8859-1 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 --e89a8f13ec548001e504c9a54659--