On Tue, Jun 22, 2004 at 01:52:44PM +0100, Malcolm Wallace wrote:
> 
> Same again.  Try
>    addHeight h  E        = h `seq` h
> 
> which, although it looks bizarre, actually forces the evaluation of h,
> whilst simply returning it does not.

That contradicts my intution for seq. I would read it as "h is forced
before h is forced", and I would think that (h `seq` h) is equivalent
to h.

Were I am wrong?

Best regards,
Tom

-- 
.signature: Too many levels of symbolic links
_______________________________________________
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to