
3 Apr
2003
3 Apr
'03
11:53 a.m.
--- David Sankel
What would a haskell solution look like? In my opinion this functionality would be very desirable if not required.
Here is one solution using normal MVars. It is IMHO uglier than the c++ version. I think creating an extention of MVars to allow callbacks on change and syncronized variables would be very nice with this example problem. I would also suggest removing the empty MVar status.