- Joined
- Mar 16, 2008
- Messages
- 941
What I mean is a single variable for every handle, best example could be a location.
Now you assign a variable to it and the counter increases by 1. If you set the variable to a new value, the counter of the location will decrease by 1. If the counter is 0 destroy the location automaticly, assuming that locals are cleared automaticly if the function ends...
Wouldn't that be quite simple for most handles?
Now you assign a variable to it and the counter increases by 1. If you set the variable to a new value, the counter of the location will decrease by 1. If the counter is 0 destroy the location automaticly, assuming that locals are cleared automaticly if the function ends...
Wouldn't that be quite simple for most handles?