Date: 08/19/01
- Next message: Zeev Suraski: "Re: [PHP-DEV] Zend-Engine2"
- Previous message: GaM3R: "Re: [PHP-DEV] Zend-Engine2"
- In reply to: Andi Gutmans: "Re: [PHP-DEV] Zend-Engine2"
- Next in thread: Zeev Suraski: "Re: [PHP-DEV] Zend-Engine2"
- Reply: Zeev Suraski: "Re: [PHP-DEV] Zend-Engine2"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sun, Aug 19, 2001 at 06:40:04PM +0300, Andi Gutmans wrote :
> Right now the only thing which is implemented is that objects behave as
> object handles and not as native types so when you're sending objects by
> values or assigning objects the object handler is copied and not the object
> itself. Also very partially implemented is syntax such as
> $foo->method1()->method2();
Just tried it, really great.
<?php
class a {
function b() {
return new c;
}
}
class c {
function d() {
echo "Yo\n";
}
function e() {
return range(1,10);
}
}
$a = new a;
$a->b()->d();
print_r( $a->b()->e()[0]);
?>
The last line gives parse error. So, I guess no yet supported?
- Markus
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Zeev Suraski: "Re: [PHP-DEV] Zend-Engine2"
- Previous message: GaM3R: "Re: [PHP-DEV] Zend-Engine2"
- In reply to: Andi Gutmans: "Re: [PHP-DEV] Zend-Engine2"
- Next in thread: Zeev Suraski: "Re: [PHP-DEV] Zend-Engine2"
- Reply: Zeev Suraski: "Re: [PHP-DEV] Zend-Engine2"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

