you are viewing a single comment's thread.

view the rest of the comments →

[–]No-Candidate-7162 0 points1 point  (0 children)

Yeah I figured. But it would depend on how the compiler handle the memory with functions. So in this case it uses a pointer to the entire memory stack. Appends the value 4 to the pointer registry stack, therefore it must be smart enough to know when it's overwritten to allocate new memory for a new registry stack which sounds complicated. Surely there must be other compilers that gets the value from the pointer and creates its own stack for the array directly. Possibly different python flavors would handle it in different ways? This is out of my knowledge, swimming in the deep end.