Home Segments Index Top Previous Next

10: Mainline

Also, Smalltalk provides for automatic memory recycling. When you use a language such as C++, you have to remember to free the memory allocated to program elements, such as class instances, once you are finished with them. Failing to free memory produces a memory leak that may exhaust all the memory available to your program, leading either to erratic behavior or to a total crash.

Smalltalk frees memory automatically, by performing automatic garbage collection, so you never need to worry about memory leaks, or to waste time looking for one. Thus, you are more productive, and are less likely to be driven crazy by doing tedious, mind-numbing debugging.