disappointment. That in this example case, it both times debugprints number 3, when I am hoping that the second time it would give me an error of both a as well as a.test not existing.
The actual reason for looking at this is that I am having in my program this list of OOPs that all simply do their update function.
as example:
Code: Select all
foreach(ListOfOOPs, function (id, content) content:UpDate() endfunction)
and idea is that all those OOPs are existing only temporarily, and when they have finished their jobs, they are supposed to cease to exist.
There are other ways to achieve this, but it seemed to me that the simplest had been that when the Update function notices their task is over, they could simply self=NIL. But this didn't seem to work as I hoped.