Re: Question about the "next ptr" in heapAlloc

2021-03-03 Thread C K Kashyap
Got it ... makes sense ... thanks Alex :) Regards, Kashyap On Tue, Mar 2, 2021 at 10:04 PM Alexander Burger wrote: > Hi Kashyap, > > > I noticed that in the linked list of free cells, "car" is used as the > next > > pointer. Is the choice arbitrary? I could've been "cdr" too right? Just > > curi

Re: Question about the "next ptr" in heapAlloc

2021-03-02 Thread Alexander Burger
Hi Kashyap, > I noticed that in the linked list of free cells, "car" is used as the next > pointer. Is the choice arbitrary? I could've been "cdr" too right? Just > curious if there is some interesting reason behind it :) It is almost arbitrary. A very tiny, very theoretical, reason is a possibly

Question about the "next ptr" in heapAlloc

2021-03-02 Thread C K Kashyap
Hi Alex, I noticed that in the linked list of free cells, "car" is used as the next pointer. Is the choice arbitrary? I could've been "cdr" too right? Just curious if there is some interesting reason behind it :) Regards, Kashyap