Re: [PHP-DEV] Subject and Observer Interfaces

2005-09-13 Thread Andi Gutmans
Did I miss something? Where/when did Subject/Observer interfaces go into PHP 5.1? These are very generic names. Marcus, I checked PHP CVS and suddenly saw you commited something like this. I would question in general the direction you're going with Spl. But in any case, these if anything they sh

Re: [PHP-DEV] Subject and Observer Interfaces

2005-09-13 Thread Jeff Moore
On Sep 13, 2005, at 1:37 AM, Marcus Boerger wrote: there is no way in implementing multi-whatever observer and subjects typesafe. Java does it. (However, I am most definitely NOT suggesting emulating java's solution in php.) The other thing you mentioned, sending information along, is n

Re: [PHP-DEV] Subject and Observer Interfaces

2005-09-13 Thread Jeff Moore
On Sep 13, 2005, at 1:35 AM, Sebastian Bergmann wrote: You can extend the interfaces ... and adapt them to your needs while retaining the possibility to use them with other code that only knows about the original Subject and Observer interfaces. Actually you can't and still be typesafe

Re: [PHP-DEV] Subject and Observer Interfaces

2005-09-12 Thread Marcus Boerger
Hello Jeff, there is no way in implementing multi-whatever observer and subjects typesafe. If you want that you'd end up calling them MySubjectWhatever, MySubjectWhatnot, MySubjectWhatelse, ... and MyObserverWhatever, ... The other thing you mentioned, sending information along, is not necessary

Re: [PHP-DEV] Subject and Observer Interfaces

2005-09-12 Thread Sebastian Bergmann
Jeff Moore schrieb: > The problem with the Observer interface is that any class implementing > it is only capable of receiving one kind of notification (update) and > there is no capability to send any additional information. > > The problem with the Subject interface is that it can also only supp