Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62990 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 91100 invoked from network); 13 Sep 2012 21:39:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Sep 2012 21:39:42 -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.155 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 173.203.6.155 smtp155.ord.emailsrvr.com Linux 2.6 Received: from [173.203.6.155] ([173.203.6.155:40305] helo=smtp155.ord.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 03/0B-31416-C9252505 for ; Thu, 13 Sep 2012 17:39:42 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp28.relay.ord1a.emailsrvr.com (SMTP Server) with ESMTP id D855316014C; Thu, 13 Sep 2012 17:39:37 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp28.relay.ord1a.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id 792811600EF; Thu, 13 Sep 2012 17:39:37 -0400 (EDT) Message-ID: <50525298.5030309@sugarcrm.com> Date: Thu, 13 Sep 2012 14:39:36 -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: Anthony Ferrara CC: "internals@lists.php.net" References: <504F4D33.4070306@ralphschindler.com> <5051968E.7030908@zend.com> <553F2A43-1A28-4AB5-9D6F-6B5ADFC420DB@strojny.net> <50524786.60805@ralphschindler.com> <505248D9.2020405@sugarcrm.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 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! > Right now, you can access static properties and methods from a > string/object by doing $var::$foo... I would assume that this works the > same way. That way, you can take in a string class name, or an object, > and get the class in one shot `$obj::class` instead of > `get_class($obj)`... Just for consistency... I guess it can be made work if we do it right - e.g. via ZEND_FETCH_CONSTANT. I'm not a big fan of inventing new syntax for things that already exist and can be done with the same effort - but technically it should be possible. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227