Re: [PHP-DEV] $class::bar() yields parse error

2001-10-29 Thread Sebastian Bergmann
Zeev Suraski wrote: > Yes, currently this has to be resolved in compile time. I see, thanks for the info. > This may (probably will) change in the Engine 2.0. This would be great, Sebastian -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/

Re: [PHP-DEV] $class::bar() yields parse error

2001-10-29 Thread Zeev Suraski
At 11:33 29/10/2001, Sebastian Bergmann wrote: > Calling static methods on 'variable' classes currently yields a parse > error: > > class foo { > function bar() { > echo 'foobar'; > } > } > > $class = 'foo'; > $class::bar(); > ?> > > I think it wo

[PHP-DEV] $class::bar() yields parse error

2001-10-29 Thread Sebastian Bergmann
Calling static methods on 'variable' classes currently yields a parse error: I think it would be great if the above syntax would be possible. Any technical obstacles, comments? Doing bar(); ?> is against the idea of static classes, IMHO. -- Sebastian Bergmann h