From c4c91e3444c4a530761f900d4f7268801e5cc55d Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Mon, 27 Jan 2020 17:12:04 -0500 Subject: started nested packages --- std/io.toc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'std') diff --git a/std/io.toc b/std/io.toc index 147834f..e9d73d6 100644 --- a/std/io.toc +++ b/std/io.toc @@ -33,4 +33,12 @@ stdout_fwrite ::= fn(data: &u8, size: u64, nmemb: u64) { #export puts ::= fn(x: []char) { stdout_fwrite(&x[0] as &u8, 1, x.len as u64); toc_putchar('\n'); +}; + +arr ::= pkg "arr"; + +#export puts_arr ::= fn(x: arr.Arr([]char)) { + for s := x.data { + puts(s); + } }; \ No newline at end of file -- cgit v1.2.3