Go to the first, previous, next, last section, table of contents.


Class Stack

Class Stack, like Class Stream, is not part of the Muq security kernel, but rather merely a generic facility provided to support muf programming. It seemed odd to provide several specialized stack classes but no generic one; Failing to provide a generic one would invite abuse of the specialized ones.

Class Stack adds the following properties to those of Class Plain:

$S.vector:   The vector used to actually hold the stack contents.
$S.length:   The current number of occupied slots in the stack.

Note: For convenience, the $S properties are also available in the public (default) propdir.

Note: Class stack may eventually be merged with the array classes, since CommonLisp one-dimensional arrays support stack pointers.

See section makeStack. See section push. See section pull. See section length. See section reset.


Go to the first, previous, next, last section, table of contents.