Next: machinery continuations non, Previous: machinery continuations without, Up: machinery continuations [Index]
Under Vicare machine words on the stack are immutable by definition; let’s see why. Scheme has two kinds of values: immediate and compound.
If we mutate a vector with vector-set!
: we mutate the memory
block, the reference to such vector is untouched. References to
compound values are immutable.
Vicare always allocates compound values’ memory blocks on the heap, while references are moved around in CPU registers and memory locations; references are put on the stack if it is needed for the execution of a program.
Local variables can be mutated, special care is taken to implement them; Local variables.