Re: [fpc-pascal] Generic Observables

2013-05-02 Thread Graeme Geldenhuys
On 2013-05-02 20:26, Michal Wallace wrote: > > I was experimenting with using some of FPC's features together and came up > with this: > > https://github.com/tangentstorm/lazmvc/blob/master/umodel.pas Just curious. If you use interfaces already, then why use message methods for notifications? W

Re: [fpc-pascal] Generic Observables

2013-05-02 Thread Michal Wallace
On Thu, May 2, 2013 at 2:34 PM, Michael Van Canneyt wrote: > You are aware that the classes unit contains the observer pattern, and > together with the fpmediators it has all you need to implement the MVC > model (through mediators) ? > Nope. :) I actually had thought I'd seen something about ob

Re: [fpc-pascal] Generic Observables

2013-05-02 Thread Michael Van Canneyt
On Thu, 2 May 2013, Michal Wallace wrote: Hey all, I was experimenting with using some of FPC's features together and came up with this: https://github.com/tangentstorm/lazmvc/blob/master/umodel.pas Basically, it's just a generic implementation of the Observer design pattern. It provides a

[fpc-pascal] Generic Observables

2013-05-02 Thread Michal Wallace
Hey all, I was experimenting with using some of FPC's features together and came up with this: https://github.com/tangentstorm/lazmvc/blob/master/umodel.pas Basically, it's just a generic implementation of the Observer design pattern. It provides a class, TModel, tha you can use as an interface