QuoteOriginally posted by: outrunI think what we did wasn't observer, it was more of a job-queue, we bound args to functions, not calling member functions of objects. More functional than OO. The ::bind does create an object, but that indeed has a different scope and lifetime. A bind copies arguments of the function to be called, it doesn't reference them.?Loose coupling.That is a much better solution than Observer indeed, the latter being heavy into inheritance. If you ever have time, trying signals2 on the same problem is good IMO. BTW signals2 supports priority by putting functions into groups. You don't need to implement queues..
Last edited by Cuchulainn
on November 29th, 2015, 11:00 pm, edited 1 time in total.