I wonder if it is okay to do the following:
newImage=newImage(...) newEffect=newImage(...)
newImage.effect=newEffect
later in the code I do this:
newImage.effect=0 -- setting the effect to zero
Now I wonder if it is enough to remove the newEffect image to get it out of memory 100% by doing:
display.remove(newEffect) newEffect=nil
or do I have to do set this to nil instead of 0 like this:
newImage.effect=nil
I would like to know if it is okay to give table values other content without thinking about the content it had before, like images for example.
Can anyone please give me a hint here? 