Re: Tie'ing variables
| From: | George Schlossnagle | Date: | Sat, 01 Mar 2003 16:51:06 +0000 |
| Subject: | Re: Tie'ing variables | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-94701@lists.php.net to get a copy of this message | ||
Having this sort of functionaility in general would be great. I know you can affect this with objects via overload, but it is useful for scalars and arrays and streams as well. It is pretty 'magical' though.
George
On Saturday, March 1, 2003, at 11:26 AM, Sterling Hughes wrote:
I was wondering if it might be possible to "tie" these arrays to a function (if you don't understand that, look at Perl for a definition). One could populate them as an overloaded object, and then array accesses would work - I guess. But I would prefer a cleaner mechanism.