Updated stdlib. Prefer file::open. Fix to slice assign with distinct types.

This commit is contained in:
Christoffer Lerno
2023-03-12 00:22:17 +01:00
parent 2607062cb6
commit 4ffeada3c7
12 changed files with 54 additions and 80 deletions

View File

@@ -2,8 +2,7 @@ module load_world;
import std::io;
fn void! main()
{
File f;
f.open("examples/hello_world.txt", "rb")?;
File f = file::open("examples/hello_world.txt", "rb")?;
defer f.close()!!;
while (!f.eof())
{