What is the point of overloading an object again?

> Hello,
>
> I realize this stuff isn't set in stone yet, but might I eventually
> expect the following to make two assignments rather than one?
>
> <?php
>
> class overload_test
> {
>    function __set($name, $value) {
>        echo "__set($name, $value)\n";
>        $this->$name = $value;
>        return true;
>    }
> }
>
> overload('overload_test');
>
> $t = new overload_test;
> $t->a = 'Foo';
> $t->b[0] = 'Bar';
> print_r($t);
>
> ?>
>
> Output:
> __set(a, Foo)
> overload_test Object
> (
>    [a] => Foo
> )
>
> Thanks,
> -Dan
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to