Re: [Hugs-users] stack overflow in tail recursive function

2010-03-24 Thread Daniel Fischer
-Ursprüngliche Nachricht- Von: Bruno Schneider Gesendet: 24.03.2010 13:56:32 An: hugs-users@haskell.org Betreff: Re: [Hugs-users] stack overflow in tail recursive function >On Wed, Mar 24, 2010 at 7:27 AM, Daniel Fischer wrote: >[...] >> >> and this expression is

Re: [Hugs-users] stack overflow in tail recursive function

2010-03-24 Thread Bruno Schneider
On Wed, Mar 24, 2010 at 7:27 AM, Daniel Fischer wrote: [...] > > and this expression is only evaluated if necessary. factorial 2 builds a > thunk of 2 nested multiplications, this is tried to evaluate when the > value is demanded for printing, but the expression is too deeply nested to >

Re: [Hugs-users] stack overflow in tail recursive function

2010-03-24 Thread Daniel Fischer
-Ursprüngliche Nachricht- Von: Neil Mitchell Gesendet: 23.03.2010 21:40:39 An: Bruno Schneider Betreff: Re: [Hugs-users] stack overflow in tail recursive function >Hi Bruno, > >I suggest you ask this question on the haskell-cafe@ mailing list - >it's a general Hask

Re: [Hugs-users] stack overflow in tail recursive function

2010-03-23 Thread Neil Mitchell
Hi Bruno, I suggest you ask this question on the haskell-cafe@ mailing list - it's a general Haskell question, and you'll get a much more detailed answer there. Thanks, Neil On Tue, Mar 23, 2010 at 12:01 PM, Bruno Schneider wrote: > Hi all, > > I have this tail recursive factorial function: > >