Memory Management

Frost manages memory using automatic reference counting. Each object carries around a count of the number of references to it, and when that count drops to zero, the object is destroyed. This reference count tracking is completely automatic, and you will generally not even need to be aware of it - simply create and use objects as needed, and they will be automatically cleaned up for you when you are finished with them.

Of course, every memory management strategy has advantages and disadvantages, and automatic reference counting is no different.

The chief advantages of Frost's memory management are:

The chief disadvantages of Frost's memory management are: