Hello,
does anyone have a patch for PHP6 to add late static binding?
have we agreed on the syntax?
IIRC, static:: as the favorite ..?
regards,
Lukas
That one seems fine to me.
-Andrei
Hello,
does anyone have a patch for PHP6 to add late static binding?
have we agreed on the syntax?
IIRC, static:: as the favorite ..?regards,
Lukas
Hello Lukas,
iirc everyone interested agreed to that syntax. However so far we only saw
one implementation and that comes with a slowdown of every function call.
The problem is that the only known solution so far is to puch the context
(the initial calling scope/class) along with $this etc on the calling stack.
That would result in pushing 4 instead of 3 pointers. However there hasn't
been an analysis of permformance impact - at least not that i am aware of.
best regards
marcus
Thursday, April 26, 2007, 5:00:06 PM, you wrote:
Hello,
does anyone have a patch for PHP6 to add late static binding?
have we agreed on the syntax?
IIRC, static:: as the favorite ..?
regards,
Lukas
Best regards,
Marcus