ActionScript - Difference Between Primitive / Non-Primitive Objects for Memory Management?
问题 my understanding is that primitive types ( uint, string, Number, etc. ) of a class do not need to be set to null for garbage collection. for example, i am not required to write this dispose() method in the following class: package { //Imports import flash.display.Shape; //Class public class DrawSquare extends Shape { //Properties private var squareColorProperty:uint; //Constructor public function DrawSquare(squareColor:uint) { squareColorProperty = squareColor; init(); } //Initialize private