next up previous contents index
Next: Internal functions interfaces Up: How it works Previous: The interpretor   Contents   Index

Memory management

Memory copy is expensive46, memory allocation too. So I tried to avoid unnecessary duplications of ``cells''. That's why I implemented a poor man's garbage collector: each ``cell'' has a reference count. ref_cell increments it, and deref_cell decrements it. Once it reaches 0, the cell is freed47.
To use, do not try to be smart, just follow a couple of simple rules:

Michel Arboi 2005-04-29