ref: 76ce9de16baeec77b86ece6825b90715b08545ba
parent: 00963a8a8348d7ef25eaa31cf4b0b4a3cc4036d3
author: Ori Bernstein <[email protected]>
date: Tue Jul 10 18:33:50 EDT 2018
Make bio and regex disposable.
--- a/mbld/subtest.myr
+++ b/mbld/subtest.myr
@@ -25,8 +25,8 @@
var f, log
var res
- f = bio.mkfile(fd, bio.Rd)
- log = bio.mkfile(logfd, bio.Wr)
+ f = auto bio.mkfile(fd, bio.Rd)
+ log = auto bio.mkfile(logfd, bio.Wr)
res = `std.None
match bio.readln(f)
| `std.Err `bio.Eof:
@@ -45,8 +45,6 @@
std.slfree(ln)
;;
- bio.close(f)
- bio.close(log)
-> res
}