Apologies if I'm asking something super basic but why does the following code
work fine with refc but crash with a stack overflow when using ARC?
import lists
var l = initSinglyLinkedList[int]()
for i in 1..1_000_000:
l.add i
Run
What would be t
I was trying to create a simple linked list. But I saw crashes as soon as I
added more than a few hundred thousand nodes. I then tried the lists module
from the standard library but saw the same behavior.
Why does the following result in a segfault? Am I doing something wrong?
impo