note 72211 added to language.oop5.overloading
| From: | jbailey at raspberryginger dot com | Date: | Mon, 08 Jan 2007 04:39:07 +0000 |
| Subject: | note 72211 added to language.oop5.overloading | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-121410@lists.php.net to get a copy of this message | ||
The __set method doesn't seem to respect visibility at all (and the examples suggest this).
I'd hoped that marking the __set method as "private" would cause an exception to get
thrown. Instead the __set method needs to throw an Exception itself.
Being able to lock other things away from putting things randomly into the object would be handy for
helping find typos right at the source.
----
Server IP: 66.207.199.35
Probable Submitter: 74.56.9.173
----
Manual Page -- http://www.php.net/manual/en/language.oop5.overloading.php
Edit -- https://master.php.net/note/edit/72211
Del: integrated -- https://master.php.net/note/delete/72211/integrated
Del: useless -- https://master.php.net/note/delete/72211/useless
Del: bad code -- https://master.php.net/note/delete/72211/bad+code
Del: spam -- https://master.php.net/note/delete/72211/spam
Del: non-english -- https://master.php.net/note/delete/72211/non-english
Del: in docs -- https://master.php.net/note/delete/72211/in+docs
Del: other reasons-- https://master.php.net/note/delete/72211
Reject -- https://master.php.net/note/reject/72211
Search -- https://master.php.net/manage/user-notes.php