diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2021-11-19 15:23:41 -0500 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2021-11-19 15:23:41 -0500 |
commit | 2cd693bb64da78df5bd15dfae88f70401518dc91 (patch) | |
tree | 73fadaf70e7f56b70dc526f487a0da5fcd2ba253 /src | |
parent | 96cf52263053db6bc3069c9fbc664ed0725ac41e (diff) |
[EXEC] Change file read type back to byte instead of rune
Diffstat (limited to 'src')
-rw-r--r-- | src/texec/libtnsl.go | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/texec/libtnsl.go b/src/texec/libtnsl.go index 8dedfbf..bff8d48 100644 --- a/src/texec/libtnsl.go +++ b/src/texec/libtnsl.go @@ -28,6 +28,14 @@ import ( - io.println - io.open_file - io.File API for file objects + + Types included: + - tnsl.io.File + - string ({}charp) + - charp + - int + - float + - null */ // I really hope this works. @@ -130,7 +138,7 @@ func tfile_close(file TVariable) { func tfile_read(file TVariable) TVariable { b := []byte{1} (file.Data).(*os.File).Read(b) - return TVariable{tCharp, rune(b[0])} + return TVariable{tCharp, b[0]} } // tnsl.io.File.write |