Re: [PATCH] [RFC] Closures and lambda functions in PHP
| From: | Lars Strojny | Date: | Sun, 29 Jun 2008 22:41:40 +0000 |
| Subject: | Re: [PATCH] [RFC] Closures and lambda functions in PHP | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-38682@lists.php.net to get a copy of this message | ||
Hi Stas,
Am Sonntag, den 29.06.2008, 15:20 -0700 schrieb Stanislav Malyshev:
[...]
> If we use this syntax, and $view->escape is not defined, should we
> call __call or __get?
That's indeed a good question. Calling __get() after resolving
$view->escape as a property would break BC. Maybe we would do the
following:
a) method exists?
b) invokable property exists?
c) __get() exists and returnes invokable object?
d) __call() exists?
e) trigger error
The important thing with c) is that we resolve to __call() if __get()
returned something wrong to make sure currently working objects are
still working in the future.
cu, Lars
Attachment: [application/pgp-signature] Dies ist ein digital signierter Nachrichtenteil signature.asc
Attachment: [application/pgp-signature] Dies ist ein digital signierter Nachrichtenteil signature.asc