Re: [VOTE] ::class feature to resolve namespaced class names to scalars
| From: | Ralph Schindler | Date: | Thu, 13 Sep 2012 20:52:22 +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-62983@lists.php.net to get a copy of this message | ||
On 9/13/12 3:36 AM, Lars Strojny wrote:
Hi Simon, Am 13.09.2012 um 10:34 schrieb Simon J Welsh <simon@simon.geek.nz>: [...]What is $variable is not a string? and/or what if $variable is a string but the contents don't match a namespace resolution rule? What happens? -ralphI would expect $variable::class to work (like late static bindings).[...] Than better try the patch, as it doesn’t work now :) But it is a good point indeed. @Ralph: what do you think? cu, Lars