aboutsummaryrefslogtreecommitdiff
path: root/examples/echo.zc
diff options
context:
space:
mode:
Diffstat (limited to 'examples/echo.zc')
-rw-r--r--examples/echo.zc5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/echo.zc b/examples/echo.zc
index 79eb877..bab0af3 100644
--- a/examples/echo.zc
+++ b/examples/echo.zc
@@ -1,2 +1,5 @@
+namespace;
+include rt;
+
// everything after the backtick is left unread, for the program itself
-fn main() { while (!eof()) put_c(get_c()); return 0; }
+void main() { while (!rt.eof()) rt.put_c(rt.get_c()); return; }