]> gitweb.factorcode.org Git - factor.git/blobdiff - core/destructors/destructors.factor
continuations[-docs]: add the finally word
[factor.git] / core / destructors / destructors.factor
index 9571d0fb1b141c144c6eb82694934c47db1401f1..c50435fed10a9f7ba965559b9758aa8643385b4e 100644 (file)
@@ -59,7 +59,7 @@ M: disposable dispose
     [ last rethrow ] unless-empty ;
 
 : with-disposal ( object quot -- )
-    over [ dispose ] curry [ ] cleanup ; inline
+    over [ dispose ] curry finally ; inline
 
 <PRIVATE