Rasmus Lerdorf wrote:
> 
> > >Guys, relax.  No, this does not work.  The only reason your example works
> > >is because min() is a built-in PHP function already.
> > >
> >
> >   man now i am crushed... i knew it wouldn't work - that's why i never
> > tried.  i was so amazed when i tried that i must have been blind to the fact
> > that i chose a bad example...
> >
> >   has anyone every thought of adding such a thing?  the dev team can surely
> > appreciate it because #defined macros are all over the php source.
> 
> You can use create_function() to do something like that.  See
> http://php.net/create_function
> 
> Or simply make a function.  The point of macros in a language like C is
> that they are processed before compilation and a real function call is
> avoided.  This does not apply to a non-compiled language like PHP so there
> is no reason not to simply create a PHP-level function if you want
> something like that.

You mean a non-precompiled language like PHP.  Technically speaking, PHP
has been compiling for a while.

 - Stig

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to