Re: Property Overloading RFC
| From: | Lukas Smith | Date: | Sun, 28 Aug 2005 08:36:08 +0000 |
| Subject: | Re: Property Overloading RFC | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-18506@lists.php.net to get a copy of this message | ||
Stanislav Malyshev wrote:
DR>>If it returns false, the engine can throw an error on the line where DR>>it was used, not inside the __get() method itself, as that doesn't DR>>help debugging your code (as you don't usually know where it was DR>>called from). That I understand. However, you still don't have means to know _what_ was wrong in this line. BTW, how comes you don't know where it came from if you have backtrace?Uhm Derick has said multiple times that he can get a backtrace, but that backtrace points at the wrong place just as manually triggering an error. Obviously this is somehow fixable with alot of magic inside a custom error handler. However I think the addition Derick is proposing is fairly reasonble and clear and doesnt introduce a new keyword or magic method. regards, Lukas