Re: [PHP4BETA] Problem with variable functions
| From: | chagenbu at wso dot williams dot edu | Date: | Sun, 12 Mar 2000 22:27:13 +0000 |
| Subject: | Re: [PHP4BETA] Problem with variable functions | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-11996@lists.php.net to get a copy of this message | ||
Quoting Andi Gutmans <andi@zend.com>:
> This won't be fixed as it isn't a bug. It is just the way it works.
> What we could support at some point is $foo::$bar() but it won't happen
> before PHP 4.
> For now you could theoretically do eval("$func();") but it isn't the nicest
> thing. Are you sure there isn't a different way to write your code?
I guess I'll buy that it isn't a bug, but is there any chance that it can work
for the usort() case? Being able to pass member functions would clean up _so_
much encapsulation...
And sure, there are different ways to write the code, but it seems like this
would be useful for enough things that it's worth having...
-chuck