Re: [PHP-DEV] Re: Make primitive type names reserved words (Was: Re: [PHP-DEV] [RFC] 5.4 features for vote (long))

2011-07-13 Thread Derick Rethans
On Sun, 10 Jul 2011, Stas Malyshev wrote: Hi! On 7/10/11 9:41 AM, Patrick ALLAERT wrote: I'm sure some projects have defined classes with those keywords in some namespace (to ensure they wouldn't conflict with possible PHP built-in stuff) like in: namespace \Types { class

[PHP-DEV] Re: Make primitive type names reserved words (Was: Re: [PHP-DEV] [RFC] 5.4 features for vote (long))

2011-07-11 Thread Matthew Weier O'Phinney
On 2011-07-10, Stas Malyshev smalys...@sugarcrm.com wrote: On 7/10/11 9:41 AM, Patrick ALLAERT wrote: Developer may have taken care of defining them in a specific namespace, would it be possible to not break their application while making them reserved keywords in the global namespace only?

Re: [PHP-DEV] Re: Make primitive type names reserved words (Was: Re: [PHP-DEV] [RFC] 5.4 features for vote (long))

2011-07-11 Thread Ferenc Kovacs
On Mon, Jul 11, 2011 at 5:08 PM, Matthew Weier O'Phinney weierophin...@php.net wrote: On 2011-07-10, Stas Malyshev smalys...@sugarcrm.com wrote: On 7/10/11 9:41 AM, Patrick ALLAERT wrote: Developer may have taken care of defining them in a specific namespace, would it be possible to not

Re: [PHP-DEV] Re: Make primitive type names reserved words (Was: Re: [PHP-DEV] [RFC] 5.4 features for vote (long))

2011-07-11 Thread Patrick ALLAERT
2011/7/11 Ferenc Kovacs tyr...@gmail.com: On Mon, Jul 11, 2011 at 5:08 PM, Matthew Weier O'Phinney [snip] I think that's a bad idea. The point of namespaces is to allow us to override classes (and functions, and constants) within that namespace. If I can't do this:    namespace Foo    {  

[PHP-DEV] Re: Make primitive type names reserved words (Was: Re: [PHP-DEV] [RFC] 5.4 features for vote (long))

2011-07-10 Thread Stas Malyshev
Hi! On 7/10/11 9:41 AM, Patrick ALLAERT wrote: I'm sure some projects have defined classes with those keywords in some namespace (to ensure they wouldn't conflict with possible PHP built-in stuff) like in: namespace \Types { class Int { // ... } class Float {