rfc:lsb_parentself_forwarding
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rfc:lsb_parentself_forwarding [2008/07/23 13:58] – add some stuff colder | rfc:lsb_parentself_forwarding [2017/09/22 13:28] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 3: | Line 3: | ||
* Date: 2008-07-22 | * Date: 2008-07-22 | ||
* Author: Etienne Kneuss < | * Author: Etienne Kneuss < | ||
- | * Status: | + | * Status: |
===== Introduction ===== | ===== Introduction ===== | ||
- | This RFC covers the change that occured to Late Static Bindings (LSB) prior to it' | + | This RFC covers the change that occured to Late Static Bindings (LSB) prior to its first alpha release. |
==== Terms and concepts ==== | ==== Terms and concepts ==== | ||
- | LSB works by passing the original call info to the function, used then by static:: or get_called_class to get the original class name used. This information will only be useful in case a '' | + | LSB works by passing the original call info to the function, used then by '' |
<code php> | <code php> | ||
<?php | <?php | ||
Line 52: | Line 52: | ||
</ | </ | ||
- | Now, depending on how you call A's who() from B::who(), you might get different results for the c::who() call: | + | Now, depending on how you call A' |
- C, if the call was '' | - C, if the call was '' | ||
- A, if the call wasn't '' | - A, if the call wasn't '' | ||
Line 58: | Line 58: | ||
===== The change ===== | ===== The change ===== | ||
- | Previously, A::who() and parent:: | + | Previously, |
- | With the change, a difference between parent:: and A:: is introduced, that is: parent:: is '' | + | With the change, a difference between |
- | Note that self:: will also be made to be forwarding, while < | + | Note that '' |
===== ML Discussion ===== | ===== ML Discussion ===== |
rfc/lsb_parentself_forwarding.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1