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

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

2007-09-15 Thread Peter Brodersen
On Fri, 14 Sep 2007 18:01:13 +0100, in php.internals [EMAIL PROTECTED] ("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 wi