summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-09-18 16:05:46 -0400
committerOri Bernstein <ori@eigenstate.org>2014-09-18 16:05:46 -0400
commit36a26aa671237ac768d99d0a30edc35fd10dffd0 (patch)
treeaff86c6759e25923b3326b16d3f2b215d239adf3
parent0173ca92374d915bd5c9b40c307f368e1cadbaf4 (diff)
downloadmc-36a26aa671237ac768d99d0a30edc35fd10dffd0.tar.gz
Remove dependencies on libbio for mandelbrot.myr
-rw-r--r--test/mandelbrot.myr12
1 files changed, 4 insertions, 8 deletions
diff --git a/test/mandelbrot.myr b/test/mandelbrot.myr
index d948544..bfe8ca9 100644
--- a/test/mandelbrot.myr
+++ b/test/mandelbrot.myr
@@ -1,5 +1,4 @@
use std
-use bio
const Bailout : flt64 = 16.0
const Maxiter = 1000
@@ -34,20 +33,17 @@ const mandelbrot = {x, y
const main = {args : byte[:][:]
var x : flt64, y : flt64, i
- var f
- f = bio.mkfile(1, bio.Wr)
for y = -39.0; y < 39.0; y = y + 1.0
for x = -39.0; x < 39.0; x = x + 1.0
i = mandelbrot(x/40.0, y/40.0)
if i == 0
- bio.write(f, "*")
+ std.put("*")
else
- bio.write(f, " ")
+ std.put(" ")
;;
;;
- bio.write(f, "\n")
+ std.put("\n")
;;
- bio.write(f, "\n")
- bio.close(f)
+ std.put("\n")
}