mirror of
https://github.com/Nexoniarz/Finch.git
synced 2026-11-03 00:44:27 +00:00
Also frees main's args and the message of a failing main (valgrind was not clean on two tests). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 lines
222 B
Text
12 lines
222 B
Text
// exit(...) ends an or-block, like return
|
|
fn load(str p) -> int! {
|
|
return error("no such file")
|
|
}
|
|
|
|
fn main() {
|
|
n := load("a.txt") or {
|
|
print("stopping:", err)
|
|
exit(0)
|
|
}
|
|
print("never", n)
|
|
}
|