rfc:closures
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
rfc:closures [2008/12/02 16:46] – status update cseiler | rfc:closures [2009/03/17 14:27] – Note $this isn't available any more scottmac | ||
---|---|---|---|
Line 172: | Line 172: | ||
=== Interaction with OOP === | === Interaction with OOP === | ||
+ | |||
+ | $this support has been removed, see [[rfc/ | ||
If a closure is defined inside an object, the closure has full access to the current object through $this (without the need to import it explicitly) and all private and protected methods of that class. This also applies to nested closures. Example: | If a closure is defined inside an object, the closure has full access to the current object through $this (without the need to import it explicitly) and all private and protected methods of that class. This also applies to nested closures. Example: |
rfc/closures.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1