Thanks, Alex.

I was looking at an older version for which heap returned the number of free 
cells currently available. I need to get up to date - looks like that changed 
since ... 2007! :-)  

Cheers,

Doug


--- On Wed, 7/13/11, Alexander Burger <a...@software-lab.de> wrote:

> From: Alexander Burger <a...@software-lab.de>
> Subject: Re: heap miniPicoLisp question
> To: picolisp@software-lab.de
> Date: Wednesday, July 13, 2011, 10:40 PM
> Hi Doug,
> 
> > # ./pil 
> > : (heap)
> > -> 1
> > : (heap T)
> > -> 0
> > : 
> > 
> > Shouldn't I see something else - or is that correct
> for miniPicoLisp ? 
> 
> This looks all right, both for standard and mini PicoLisp
> (unless you
> changed the CELLS constant in "pico.h", as discussed in
> http://www.mail-archive.com/picolisp@software-lab.de/msg02497.html)
> 
> (heap) returns the current allocation size in megabytes,
> which is 1
> initially. If called as (heap T), the free space (in
> megabytes) is
> returned (this value is truncated towards zero).
> 
> Cheers,
> - Alex
> -- 
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
> 
-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Reply via email to