WarrenM:
WarrenM:
In this context there're 3 types of languages:
- Languages using no GC: Everything must be deleted manually. This is not good, you've to delete each object yourself.
- Languages using a GC without Delete command: This is much better you don't have to delete each object, just forget about it. But what if an object is invalid and/or it must be removed?
- Languages using a GC and a Delete command: This is the best you've all advantages of the language using a GC without Delete comand and you can delete objects which are invalid and/or must be deleted.
Correct. So set it to null like you're supposed to.
I can't set an object to Null. I only can set variables to Null, but I don't know these variables.WarrenM:
You shouldn't need to have the old school, low level control that you had in the past. There's no need.
Finding all variables pointing to an object and setting them to Null is low level control, just using a Delete command is much better.In this context there're 3 types of languages:
- Languages using no GC: Everything must be deleted manually. This is not good, you've to delete each object yourself.
- Languages using a GC without Delete command: This is much better you don't have to delete each object, just forget about it. But what if an object is invalid and/or it must be removed?
- Languages using a GC and a Delete command: This is the best you've all advantages of the language using a GC without Delete comand and you can delete objects which are invalid and/or must be deleted.
To have more commands is better than to have less commands.