guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: port initialization?


From: Lynn Winebarger
Subject: Re: port initialization?
Date: Thu, 8 Aug 2002 18:20:21 -0500

On Thursday 08 August 2002 16:14, Marius Vollmer wrote:
> Han-Wen Nienhuys <address@hidden> writes:
> 
> > An out-of-memory error should be handled gracefully, I would says
> > although I can't really imagine how (there is little code that can
> > run, if you can't alloc a string or a cell, right?)
> 
> Yep.  I don't think it is worth worrying about his too much.

  If you're running out of memory, you might be in a deeply
recursed procedure that hasn't set any global variables,
so when it aborts, many megabytes become garbage.  It's
not that unusual.

(define (factorial k n)
     (if (= n 0)
          (k 1)
           (factorial (lambda (v) (k (* n v))) (- n 1) )))
(factorial (lambda (v) v) 100000000000000000000000000000000)

     Or is that not included in what you're talking about?

Lynn



reply via email to

[Prev in Thread] Current Thread [Next in Thread]