diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-01-27 17:12:04 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-01-27 17:12:04 -0500 |
commit | c4c91e3444c4a530761f900d4f7268801e5cc55d (patch) | |
tree | f727df26a63cfdc796930520a9a964e57b3b9f99 /std | |
parent | 3467f27c4c0d44f5bb2a09d93a96c71a4c0eeccc (diff) |
started nested packages
Diffstat (limited to 'std')
-rw-r--r-- | std/io.toc | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |