Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62985 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81427 invoked from network); 13 Sep 2012 20:58:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Sep 2012 20:58:06 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 173.203.6.147 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 173.203.6.147 smtp147.ord.emailsrvr.com Linux 2.6 Received: from [173.203.6.147] ([173.203.6.147:57757] helo=smtp147.ord.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 86/19-31416-ED842505 for ; Thu, 13 Sep 2012 16:58:06 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp27.relay.ord1a.emailsrvr.com (SMTP Server) with ESMTP id 114F12A8081 for ; Thu, 13 Sep 2012 16:58:04 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp27.relay.ord1a.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id 797B12A809D for ; Thu, 13 Sep 2012 16:58:02 -0400 (EDT) Message-ID: <505248D9.2020405@sugarcrm.com> Date: Thu, 13 Sep 2012 13:58:01 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 MIME-Version: 1.0 To: "internals@lists.php.net" References: <504F4D33.4070306@ralphschindler.com> <5051968E.7030908@zend.com> <553F2A43-1A28-4AB5-9D6F-6B5ADFC420DB@strojny.net> <50524786.60805@ralphschindler.com> In-Reply-To: <50524786.60805@ralphschindler.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [VOTE] ::class feature to resolve namespaced class names to scalars From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! >>> I would expect $variable::class to work (like late static bindings). What this would mean? ClassName::class has a clear meaning - ClassName is a name of the class (possibly aliased) and class is the property of this class, namely its full name. However I do not see how $variable::class can do anything meaningful. Since namespace resolution is static compile-time, $variable can not be anything but the full name of the class, so what $variable::class supposed to do? Just be equal to $variable? What's the point of such operation, what may be achieved by it? Reference to "late static binding" is even more confusing - if you mean that $variable is object, then the binding is not "static" - since you have an object - and you have perfectly good get_class($variable) to do that. Is that what you were meaning? -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227