
25 Nov
2010
25 Nov
'10
9:35 p.m.
On Thu, Nov 25, 2010 at 10:26 PM, Mitar
Hi!
On Thu, Nov 25, 2010 at 8:39 PM, Antoine Latter
wrote: I was confused by your other thread - should Chans test as equal if one is duplicated from the other? With your current patch they do not (I haven't tested it, though, only looked at it).
I think it is OK that they are not equal if duplicated. Both MVar equality and Chan equality is more or less just reference equality.
Thanks for the proposal Mitar! To avoid confusion I've added an updated patch which adds the following note to dupChan: "(Note that a duplicated channel is not equal to its original. So: @fmap (c /=) $ dupChan c@ returns @True@ for all @c@.)" Regards, Bas P.S. What about a short deadline of a week for this proposal?