Re: RFC: mark functions as const for possible optimizations

From: Date: Fri, 14 Sep 2007 17:11:35 +0000
Subject: Re: RFC: mark functions as const for possible optimizations
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-32327@lists.php.net to get a copy of this message
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.
wouldn't that be called "deterministic" and not "const"? -- Hartmut Holzgraefe, Principal Support Engineer . Discover new MySQL Monitoring & Advisory features at: http://www.mysql.com/products/enterprise/whats_new.html Hauptsitz: MySQL GmbH, Dachauer Str.37, 80335 München Geschäftsführer: Kaj Arnö - HRB München 162140

« previous php.internals (#32327) next »