blblblbl
MModular
•Created by blblblbl on 10/16/2024 in #questions
How do safe Reference and List work together?
From my understanding
Reference
is just a pointer in memory with associated lifetime. But I don't understand how the following code doesn't crash
Certainly reallocation should have happened here and therefore element
should point to invalid memory location, which should cause segfault. But it prints 0
. What am I missing?29 replies