std.pattern.. templated publisher subscriber pattern, adding events to collections

BLS windevguy at hotmail.de
Tue Jul 6 15:57:36 PDT 2010


Hi Dimitry, thanks for the feedback!
Please have a look at the new snippet (just posted)

msg is a ref parameter cause it is filled in our example from Stack. The 
Publisher mixin HOST.


In other words. Where ever you mixin the Publisher template a message 
will be broad casted to all subscribers containing 2 information.
1 ) a value of type T, and an enum value INSERT, DELETE etc...

will read your comments tomorrow more carefully.. have to sleep now.)

bjoern


More information about the Digitalmars-d-learn mailing list