[PATCH] Late Static Binding (Take 2)

From: Date: Wed, 08 Mar 2006 21:06:26 +0000
Subject: [PATCH] Late Static Binding (Take 2)
References: 1  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On Wed, 2006-03-01 at 17:37 +0300, Dmitry Stogov wrote:
> 1) I would very like to see some real example where "static" is necessary?
> 
> 2) "static" is really bad name. I suggest "caller", Marcus thought about
> "class".
> 
> 3) I COMPLETELY DISAGREE TO ADD RUNTIME DATA INTO
> zend_function/zend_op_array.
> We can try to store "caller_scope" in execute_data.
> 
> Thanks. Dmitry.
> 

Rewrote the patch to use execute_data to store caller_scope. I have not
renamed any functions or keywords (still using static::) as I did not
see any consensus on that yet.

Please review the implementation of caller_scope and I can take care of
the naming issues when names are decided on.

patch attached and also available at
http://test.ft11.net/_mlively/late-static-binding.patch

It would be nice if the patch in PAT could be changed to reference this
new version if the appropriate people have time.


Attachment: [text/x-patch] late-static-binding.patch

Thread (59 messages)

« previous php.internals (#22255) next »