Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [ZendEngine 2] RE:[PHP-DEV] oo != php

2002-06-11 Thread Sebastian Bergmann
Zeev Suraski wrote: able to switch aggregated objects after instantiation is not very helpful IMHO. Strategy Design Pattern ?php class aStrategy { // ... } class anotherStrategy { // ... } class Foo { delegatee $strategy;

Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [ZendEngine 2] RE:[PHP-DEV] oo != php

2002-06-11 Thread Zeev Suraski
At 11:23 AM 6/11/2002, Sebastian Bergmann wrote: This way, an object of Foo can dynamically change behaviour in a very elegant way. I'm well aware of the strategy design pattern, but it existed before 'Lava' (I use it in Java all the time)... You can just as easily do this by creating a