new syntax better

This commit is contained in:
apio 2022-06-09 17:24:38 +02:00
parent 608f3a36bd
commit ca9da4c330

View File

@ -3,13 +3,5 @@ import core/string;
namespace io {
@out (str String) {
linux.sys_write(1,(i8*)String,string.len(String));
}
@in (str) () {
i8* buffer = i8*(256);
linux.sys_read(0,buffer,256);
return (str)buffer;
}
}