interplane.Get Omega
Read in your language

omega-rosetta

aien-dev/omega-rosetta

Brought by drakestapleton

branch main Branches Tags History

omega-rosetta / tasks / hello-world-newline-omission / hello-world-newline-omission.om

19 lines · 472 bytes Raw Blame History
1note Rosetta Code task "Hello world/Newline omission": https://rosettacode.org/wiki/Hello_world/Newline_omission
2note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
3om2
4text msg "Goodbye, World!"
5note emit writes every byte of a to stdout; a short write is retried, an error exits 1
6fn emit a view uchar * to void
7o = ulong 0
8while lt o len a bound 4096
9k = write 1 a o sub len a o
10if le k 0
11exit 1
12end
13o = add o ulong k
14end
15end
16fn main to int
17emit msg
18ret 0
19end