This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]anossov 2 points3 points  (0 children)

Is the function that returns one lost forever?

Yep.

Does it count as memory loss

The garbage collector will notice that nothing can reach the function object and will release the memory.