With End With

php.internals

jason davidson

22 years ago
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

Alan Knowles

22 years ago
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

jason davidson

22 years ago
Alan Knowles wrote:
> 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 >> >> > >
Regarding being able to produce the same result with current constucts, there is no argument, your right, im not at all implying its a necassary construct, regarding ambiguity, it is well implemented in other languages without problem.