Next: , Previous: , Up: checks   [Index]


17.3 Handling multiple results

Syntax: with-result form0 form ...

Evaluate all the forms, as in internal-body, in a dynamic environment in which an implicit result variable is defined. The implicit variable is handled as a list.

Return a list whose first value is the return value of the last form and whose second value is the value of the implicit variable.

Function: add-result obj

Append obj to the list in the implicit variable defined by with-result, return obj itself.

Function: get-result

Return the current value of the implicit variable defined by with-result.