Manual - Expressions Up
 Contents   News   View 

Garbage Collection Previous Next

Garbage Collection

Quantum does have a garbage collector.  It works purely (and simply!) by reference count.  Stream's are automatically closed and Window's are automatically destroyed when garbage collected.  If you want to help the Microsoft Windows operating system recover resources as soon as possible, you can call Fclose and DestroyWindow.  It is possible to create "circular expressions" in Quantum.  The Quantum garbage collector cannot garbage collect these expressions until you break their circular links.  If you wonder what this fuss is about, evaluate (Setq x [1 2]), (Setq (Elt x 1) x) in a Quantum Interpreter window.  Remember the "stop button" on your Quantum Interpreter window's toolbar.  You can survive quite readily without circular expressions even in your biggest Quantum megaprojects.

Reference Manual: Expressions



©2004-2018 Planet Quantum Kelly Roach