At 11:33 29/10/2001, Sebastian Bergmann wrote:
>   Calling static methods on 'variable' classes currently yields a parse
>   error:
>
>     <?php
>     class foo {
>       function bar() {
>         echo 'foobar';
>       }
>     }
>
>     $class = 'foo';
>     $class::bar();
>     ?>
>
>   I think it would be great if the above syntax would be possible. Any
>   technical obstacles, comments?

Yes, currently this has to be resolved in compile time.  This may (probably 
will) change in the Engine 2.0.

Zeev


-- 
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