Re: Re: Syntax in PHP 6
| From: | Roman Ivanov | Date: | Sat, 26 Nov 2005 15:44:33 +0000 |
| Subject: | Re: Re: Syntax in PHP 6 | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-20556@lists.php.net to get a copy of this message | ||
Sara Golemon wrote:
Will your proposal be met with resistence? Certainly. Such an undertaking represents no small amount of effort and a no less pain when the final BC break occurs.No need to break BC! I have a solution. All we need is to introduce $THAT superglobal object, plus couple of new functions. define_usual_php_variable($var, 1); $THAT->va2 = 1; //not recommendedm, gives E_NOTICE class Bla{
function doSomething(){
$THAT->print($THAT->var);
$THAT->str_sub($THAT->var2);
}
}
[ This message is a joke. A bitter one. ]