Re: With End With
| From: | Alan Knowles | Date: | Thu, 11 Dec 2003 04:27:30 +0000 |
| Subject: | Re: With End With | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-6349@lists.php.net to get a copy of this message | ||
for the life of me I cant remember the date of it, (or even find it on google/zend.com/marc.theaimsgroup... etc.)
from what i remember, it had a number of flaws.
a) ambiguaty of the source of a variable or method, (as it was originally illustrated as poluting the local variable namespace)
b) the same (or similar) result, could easily be done using aliases,
eg.
$a = &$this->xxx->yyyy
$a->doThis();
rather than
with ($this->xxx->yyy) {
doThis();
}
Regards
Alan
jason davidson wrote:
If someone could help me find the discusions on the topic, i would greatly appreciate it. I searched and have not found anything yet. Or if someone could explain why the idea was rejected. Thanks jason-- Can you help out? Need Consulting Services or Know of a Job? http://www.akbkhome.com