
4 Apr
2006
4 Apr
'06
6:47 a.m.
On 30 March 2006 23:12, Andy Gill wrote:
Implementation:
deepSeq (RAW_CONS
... fields ) = if == True then return /* hey, we've already deepSeq'd this */ else set to True. deepSeq (field_1) ... deepSeq (field_n) deepSEQ (REF/MVAR...) = return
So deepSeq doesn't return _|_ when passed a cyclic structure? This is a bad idea, because it lets you distinguish cyclic structures from infinite ones. deepSeq has to behave like a function, regardless of its implementation. Cheers, Simon