Re: [PHP-DEV] Re: RFC: mark functions as const for possible optimizations

2007-09-16 Thread Johannes Schlüter
Hi Nuno, On Sun, 2007-09-16 at 20:02 +0100, Nuno Lopes wrote: > > >My proposal is the following: > > >some functions when fed with constant arguments always return a constant > > >value, too. e.g.: > > >strlen('abcd') === 4. > > > > I like the general idea. > > > > Would there be some caveats with

Re: [PHP-DEV] Re: RFC: mark functions as const for possible optimizations

2007-09-16 Thread Nuno Lopes
>My proposal is the following: >some functions when fed with constant arguments always return a constant >value, too. e.g.: >strlen('abcd') === 4. I like the general idea. Would there be some caveats with stuff like this if it is possible to change the charset at runtime? I guess it is importan