Re: New RFC draft "static class constructor"
| From: | Johannes Schlüter | Date: | Mon, 13 Apr 2015 16:54:35 +0000 |
| Subject: | Re: New RFC draft "static class constructor" | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-85786@lists.php.net to get a copy of this message | ||
On Mon, 2015-04-13 at 17:23 +0200, Johannes Schlüter wrote:
> Why am I saying it makes the language more complex? - Your proposal
> seems to miss mentioning when exactly the method is executed. what is
Ah, I missed this
Trigger for “magic” method call: First call to class, either
first call to __construct(...) or first call to any public or
protected static method or property of the class
Which means adding a flag, which has to be checked on every method call
or other access to *any* class and leads to completely "random" (from
perspective of average user) behavior while this feature can't be used
for an "obvious" task like registering itself as plugin into some
registry.
-1
johannes
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc