[Hugs-users] Avoiding use of the stack

Josef Svenningsson josefs at cs.chalmers.se
Fri Nov 19 08:32:27 EST 2004


> -----Original Message-----
> From: hugs-users-bounces at haskell.org [mailto:hugs-users-
> bounces at haskell.org] On Behalf Of ajb at spamcop.net
> Sent: den 19 november 2004 00:37
> To: hugs-users at haskell.org
> Subject: Re: [Hugs-users] Avoiding use of the stack
> 
> G'day all.
> 
> Quoting Scott Turner <p.turner at computer.org>:
> 
> >     testR2' a n = (testR2' $! (a+n)) (n-1)
> 
> Proving, once again, that the associativity of $! is wrong. :-)
> 
In what sense is it wrong, and in what sense does this example show that?

Sorry if I'm missing something obvious here.

	/Josef



More information about the Hugs-Users mailing list