EMA-XPS Online


UNWIND-PROTECT

UNWIND-PROTECT
==============

Syntax: (unwind-protect <Gesicherter-Form> 
                        {<Abschluß-Form> ...})

Manchmal ist es notwendig eine Form auszuwerten und 
sicher zu stellen, das gewisse Nebeneffekte hinterher 
stattfinden. Falls das Programm beendet wird (auf 
normale oder nicht normale Weise), dann wird die 
<Abschluß-Form> ausgeführt.

Beispiel:      >(unwind-protect
                       (progn (Starte-Motor)
                              (Bohre-Loch))
                       (Stoppe-Motor))


EMA-XPS Online