Re: [VOTE] ::class feature to resolve namespaced class names to scalars

From: Date: Fri, 14 Sep 2012 09:28:30 +0000
Subject: Re: [VOTE] ::class feature to resolve namespaced class names to scalars
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-63001@lists.php.net to get a copy of this message
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


« previous php.internals (#63001) next »