On Thu, Sep 18, 2008 at 11:30:37AM -0700, Ionut Gabriel Stan wrote:
> Actually, I somehow understand what he wants, considering we'll soon have
> lambdas and closures. I mean, in case of javascript a variable can hold as
> well a function as it can hold anything else.
> Anyway, I don't think this is the case for PHP. I do find it ugly to write
> $function(), but I guess I'll live with it as I did until now.
So if you drop the '$' the way that you call a function referenced in variable
'funref' is not:
$funref()
but
funref()
However: the PHP parser will take that to be a call to a function named
'funref'.
So you need to change the syntax to, perhaps, something like C:
(funref)()
I can't see people understanding that.
Stick with what we have.
--
Alain Williams
Linux Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256 http://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information:
http://www.phcomp.co.uk/contact.php
Chairman of UKUUG: http://www.ukuug.org/
#include <std_disclaimer.h>
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php