[Info-vax] DEC Basic and dynamic memory ?

Arne Vajhøj arne at vajhoej.dk
Sun Jan 30 20:18:27 EST 2022


On 1/30/2022 8:07 PM, Dave Froble wrote:
> On 1/30/2022 7:14 PM, Simon Clubley wrote:
>> On 2022-01-30, Arne Vajhøj <arne at vajhoej.dk> wrote:
>>> On 1/30/2022 7:03 PM, Simon Clubley wrote:
>>>>                            There's also the required copying of the
>>>> current data every time you grow the tree.
>>>
>>> That is common practice in many languages for dynamic
>>> sized data structures needing linear backing.
>>>
>>
>> But elsewhere you have the choice of whether to use something
>> like a Vector or if you need to build a tree structure yourself.
>>
>> Specifying the growth increment of a linear structure is also
>> a tradeoff but you are not forced to use a linear structure if
>> you can build real trees and that's a better choice.
> 
> Where do you come up with the idea that in Basic the nodes in a tree 
> must be linear?  They rarely are.  There usually are forward and 
> backward pointers in a linked list / tree.  Logically linear, but not 
> physically linear.

I would call my example for logical tree physical linear.

Arne



More information about the Info-vax mailing list