Definition of a Scheme extended type

Defining a scheme extended type is a little bit more complicated than defining new primitives since it implies to take into account how this new type interact with the GC (Garbage Collector). Note that until now we have not discussed about GC problems since the interpreter is able to hide you it, as far as you don't define new types.

To illustrate the discussion, we will show how to add the stack type to the interpreter in this section. The complete code for this section can be found in appendix.



Subsections