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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.