Re: re-referencing and how we could enable this *without* pointers
| From: | Stanislav Malyshev | Date: | Sat, 19 Aug 2000 20:06:08 +0000 |
| Subject: | Re: re-referencing and how we could enable this *without* pointers | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-29710@lists.php.net to get a copy of this message | ||
AL>> thus I thought we could enable a construct like this
AL>>
AL>> $barfoo&=$boo;
AL>>
AL>> what acts like in the example 1) store the "value" of $boo
AL>> temporary anywhere 2) create a reference "$barfoo" to the
AL>> variable $boo (function-scope) $foo (global-scope) are
AL>> referencing to 3) overwrite the variable with the temporary
AL>> stored value
I do not get what you are meaning to do. There's absolutely no way to know
which variable in which symbol table user had that is linked to your
variable "$foo". So, you _can not_ relink *that* unknown variable to be
reference to any other variable, because this would require knowing
calling symbol table _and_ name of the variable in that sumbol table,
which is (at least with current PHP) you have absolutely no way to know.
--
Stanislav Malyshev stas@zend.com
+972-3-6139665 ext.106