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

2012-09-13 Thread Etienne Kneuss
Hi, On Fri, Sep 14, 2012 at 12:24 AM, Stas Malyshev wrote: > Hi! > >> In the current patch, this does not work and would need another run in >> the parser. > > Couldn't we just stuff it in ZEND_FETCH_CONSTANT? I'm not arguing for > it, I'm just saying *if* we wanted it... Even though it's not r

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

2012-09-13 Thread Stas Malyshev
Hi! > In the current patch, this does not work and would need another run in > the parser. Couldn't we just stuff it in ZEND_FETCH_CONSTANT? I'm not arguing for it, I'm just saying *if* we wanted it... -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 e

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

2012-09-13 Thread Ralph Schindler
Hey Stas, * Here are the edge cases / implementation details that need a decision: - $variable::class (should it even be supported?) I don't see it doing anything useful. I generally agree. In the current patch, this does not work and would need another run in the parser. - se

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

2012-09-13 Thread Stas Malyshev
Hi! > * Here are the edge cases / implementation details that need a decision: > >- $variable::class (should it even be supported?) I don't see it doing anything useful. >- self, static, parent::class not in a class definition >- self, static, parent::class in a method signature >

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

2012-09-13 Thread Ralph Schindler
Hi all, I know there are few edge cases that need to be resolved. What I am looking for in the RFC/vote is to determine if ::class (as it works in the PoC patch) has enough acceptance for inclusion in master. If there is not enough interest in this by the powers that be, or the feature as c