Re: Woah

From: Date: Tue, 11 Sep 2001 08:12:45 +0000
Subject: Re: Woah
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-65759@lists.php.net to get a copy of this message
On 11/09/01, "Chuck Hagenbuch" <chuck@horde.org> wrote: > would be even happier if calling alias_function('gettext', '_') would > simply > do nothing if _() already pointed to gettext(), but I won't quibble about > the function_exists() check. What about a language construct: function _ = gettext; If we had this implemented during the compile phase of the engine, wouldn't it shave a few cycles off the execution time? OK, it looks a bit funny that way, so how about making alias_function(_, gettext); a language constuct (or with quotes around the args if you must). Just wondering... --Wez.

« previous php.dev (#65759) next »