Re: Example for thought
David Sankel <[email protected]>
| Newsgroups | gmane.comp.lang.haskell.gui |
|---|---|
| Message-ID | <[email protected]> |
--- David Sankel <[email protected]> wrote: > 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.
Test.hs
(application/octet-stream, 1.3 KB) - not displayed