How do you use allocate?



Richard Fateman wrote:

> I can't help more on the specific cure, but you
> should beware that sometimes such resource shortcomings
> are not really fixed by allocating more resource.
> The reason is that the program is really in an
> infinite loop and will use up whatever resource
> is re-allocated.  Unless you have some assurance
> that your program terminates after a finite
> computation, you might look there first.  I don't
> know about STREAM, but maybe you are trying to
> do input or output of very large things?
>
> RJF
>
> Raymond Toy wrote:
>
>>>>>>> "Doug" == Doug Stewart  writes:
>>>>>>
>>
>>
>>     Doug> I got the following error message:
>>     Doug> 
>> ------------------------------------------------------------------------- 
>>
>>     Doug> Maxima encountered a Lisp error:
>>
>>     Doug>  Error in PROGN [or a callee]: The storage for STREAM is 
>> exhausted.
>>     Doug> Currently, 206 pages are allocated.
>>     Doug> Use ALLOCATE to expand the space.
>>
>> Sounds like GCL.  Is it?  If so, perhaps someone familiar with gcl can
>> explain how to allocate more space.
>>
>> Ray
>>
OK. Please disregard this minor problem.
I thought there was someting simple that I was missing but it doesn't 
seem so.

Yes I had a lot of data. No it wasn't an infinite loop.
 No I don't need that much data.
Yes I can program around it.

I had looked up alloc in the manual  , but found  an unusefull remark, 
so I thought I would ask.

Function: ALLOC
 takes any number of arguments which are the same as the replies to the 
"run out of space" question. It increases allocations accordingly. E.g. 
If the user knows initially that his problem will require much space, he 
can say ALLOC(4); to allocate the maximum amount initially. See also the 
DYNAMALLOC switch. 
  

I now see that this is not in 5.9.2 but I was looking in 5.9.1
Anyway   - enough said   - all is well .
Keep up the good work.
Doug Stewart