Re: [PHP4BETA] Classes broken?

From: Date: Mon, 15 Nov 1999 15:15:38 +0000
Subject: Re: [PHP4BETA] Classes broken?
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-6244@lists.php.net to get a copy of this message
Faisal Nasim wrote: > ... (some good points) > Also, I would like to know if there is a quick and easy way > to determine what "class" the variable is associated to? Me too ! At worst, a "convention" of always passing in the first arg to a method to be the class label would be an ugly workaround. The PHPLIB people use "var $classname=suchnsuch;" and this could be passed as the first arg into all other class and method calls... ick!... help! Also, I would expect/like an included file within a class to be included into the context of that class but it's not, it's included in the context of the parent program. class Classx { include "some.inc"; } Variables and functions declared inside some.inc are now globals whereas they should (could?) be porperties and methods of that class. --markc

« previous php.version4 (#6244) next »