ID:2257575
 
(See the best response by Kozuma3.)
Code:
                for(var/i in o.overlays)
del i


Problem description: this causes the runtime error: bad del
what would be the right way to clear the object's overlays? I'm using this with obj.MouseDrop

Best response
Here you go.

o.overlays = new
Does that completely remove the old overlays, or are they left in memory where they might start to take up lot of space since overlays on some objects will change often? it still seems strange to me that it is a bad del.
If the overlays aren't existing anywhere besides within o's overlays list, then garbage collection should take over once overlays = new is called.

Also I believe overlays being a built-in list is a special type that can only be modified in specific ways. (just a guess)