Why is there a space leak here?

Wojciech Moczydlowski, Jr khaliff@astercity.net
Tue, 5 Jun 2001 19:50:34 +0000 (UTC)

On Tue, 5 Jun 2001, Tom Moertel wrote:

> The reason that foo1 "leaks" space is because the middle of v grows
> faster than its head.  So taking elements from v causes its in-memory
> footprint to grow.  To see why this is the case, evaluate foo1 by hand:
> So the problem isn't Hugs but rather the definition of v, which grows
> faster than it can be consumed.

> Tom

How come then that the very program compiled under nhc98 evaluates without
any problem, with memory usage below 1M during its execution?

Wojciech Moczydlowski, Jr