note 22559 added to language.oop

From: Date: Sat, 22 Jun 2002 18:29:01 +0000
Subject: note 22559 added to language.oop
Groups: php.notes 
Request: Send a blank email to php-notes+get-32109@lists.php.net to get a copy of this message
Given lack of type checking I understand why it is necessary to use $this every time you access a member variable in a class; but this is a serious gotcha for those used to coding in C++/Java where you can refer to the variable name only. I am also submitting a feature request that a warning be generated where a variable name is used in a class that matches a class member variable name. -- http://www.php.net/manual/en/language.oop.php http://master.php.net/manage/user-notes.php?action=edit+22559 http://master.php.net/manage/user-notes.php?action=delete+22559 http://master.php.net/manage/user-notes.php?action=reject+22559

« previous php.notes (#32109) next »