[fpc-pascal] Re: New multicast event implementation

michael.vancanneyt at wisa.be michael.vancanneyt at wisa.be
Wed Feb 2 15:13:06 CET 2011



On Wed, 2 Feb 2011, Anthony Walter wrote:

> Yeah, I just added the code highlighter, which build the highlights using
> javascript. I set to "display: none" while the page loads which isn't
> effecting the print version. The workaround is that you can print the code
> blocks by clicking the print icon in each code section. I'll fix it later.
>
> Regarding the observer pattern, I'll refer you to this stack overflow
> question:
>
> http://stackoverflow.com/questions/550785/c-events-or-an-observer-interface-pros-cons
>
> My take is that event are more natural and that they are probably more well
> established than the pattern of creating an interface to subscribe to
> events.

By contrast, generics are not established at all in Object Pascal, 
so I wouldn't exactly agree with you that it is more natural :-)

Michael.



More information about the fpc-pascal mailing list