Re: Class Posing
| From: | Sebastian Bergmann | Date: | Tue, 02 Oct 2007 13:54:52 +0000 |
| Subject: | Re: Class Posing | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-32548@lists.php.net to get a copy of this message | ||
Guilherme Blanco schrieb:
> Altho I found this idea really interesting, I have a suggestion for
> it. Instead of use a function to handle new overloads, I suggest a
> magic method, something like __new.
__new() was what I initially proposed to Johannes but IIRC there were
some performance implications with that. Johannes?
--
Sebastian Bergmann http://sebastian-bergmann.de/
GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69