Re: [PHP-DEV] Closures as methods (and Closure::bind)

2010-08-12 Thread Gustavo Lopes
On Wed, 11 Aug 2010 14:57:47 +0100, Johannes Schlüter wrote: On Wed, 2010-08-11 at 14:38 +0100, Gustavo Lopes wrote: I've updated the wiki page for "Closures with objects extension" with things that are in "Proposal A with modification"s but are not implemented: http://wiki.php.net/rfc/c

Re: [PHP-DEV] Closures as methods (and Closure::bind)

2010-08-11 Thread Gustavo Lopes
On Wed, 11 Aug 2010 15:37:01 +0100, Johannes Schlüter wrote: On Wed, 2010-08-11 at 15:29 +0100, Gustavo Lopes wrote: > * What about allowing properties with function names as strings or > array($obj_or_class, 'method'), won't that be needed for being > consistent with

Re: [PHP-DEV] Closures as methods (and Closure::bind)

2010-08-11 Thread Gustavo Lopes
On Wed, 11 Aug 2010 15:37:01 +0100, Johannes Schlüter wrote: On Wed, 2010-08-11 at 15:29 +0100, Gustavo Lopes wrote: > * What about allowing properties with function names as strings or > array($obj_or_class, 'method'), won't that be needed for being > consistent with

Re: [PHP-DEV] Closures as methods (and Closure::bind)

2010-08-11 Thread Johannes Schlüter
On Wed, 2010-08-11 at 15:29 +0100, Gustavo Lopes wrote: > > > * What about allowing properties with function names as > strings or > > array($obj_or_class, 'method'), won't that be needed for > being > > consistent with local variables? > > Well, you cannot do "$a = 'phpinfo

Re: [PHP-DEV] Closures as methods (and Closure::bind)

2010-08-11 Thread Gustavo Lopes
On Wed, 11 Aug 2010 14:57:47 +0100, Johannes Schlüter wrote: On Wed, 2010-08-11 at 14:38 +0100, Gustavo Lopes wrote: I've updated the wiki page for "Closures with objects extension" with things that are in "Proposal A with modification"s but are not implemented: http://wiki.php.net/rfc/c

Re: [PHP-DEV] Closures as methods (and Closure::bind)

2010-08-11 Thread Johannes Schlüter
On Wed, 2010-08-11 at 14:38 +0100, Gustavo Lopes wrote: > I've updated the wiki page for "Closures with objects extension" with > things that are in "Proposal A with modification"s but are not implemented: > > http://wiki.php.net/rfc/closures/object-extension#status_as_of_august_10_2010 > > I p

[PHP-DEV] Closures as methods (and Closure::bind)

2010-08-11 Thread Gustavo Lopes
I've updated the wiki page for "Closures with objects extension" with things that are in "Proposal A with modification"s but are not implemented: http://wiki.php.net/rfc/closures/object-extension#status_as_of_august_10_2010 I propose an implementation of "closures stored in properties used as