note 31189 deleted from language.variables.scope by aidan
| From: | aidan@php.net | Date: | Sun, 04 Jul 2004 02:49:16 +0000 |
| Subject: | note 31189 deleted from language.variables.scope by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-72502@lists.php.net to get a copy of this message | ||
Note Submitter: Joachim Lous
----
The doc here should mention the non-standard scope of member variables in objects here: they are
_not_ within the scope of member functions, so they must be accessed via $this-> )
I really wish this would change; I don't know how many times I've made bugs because of
this, and it makes it a lot less tempting to work in an object-oriented way than it should.
Maybe introduce a different keyword thatn 'var', so it won't conflict with older
code?