continuations: document full effect of cleanup

We can't yet apply the effect because of #138 but we can at least document it.
db4
Joe Groff 2011-10-14 14:44:15 -07:00
parent cc49bbfb27
commit 9894a6ade5
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ HELP: throw
{ cleanup recover } related-words
HELP: cleanup
{ $values { "try" quotation } { "cleanup-always" quotation } { "cleanup-error" quotation } }
{ $values { "try" { $quotation "( ..a -- ..a )" } } { "cleanup-always" { $quotation "( ..a -- ..b )" } } { "cleanup-error" { $quotation "( ..b -- ..b )" } } }
{ $description "Calls the " { $snippet "try" } " quotation. If no error is thrown, calls " { $snippet "cleanup-always" } " without restoring the data stack. If an error is thrown, restores the data stack, calls " { $snippet "cleanup-always" } " followed by " { $snippet "cleanup-error" } ", and rethrows the error." } ;
HELP: recover