oakc 0.6.1

A portable programming language with a compact backend
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[std]


fn main() {
    let size = 10;
    // without `&num` type specification, oak will throw a
    // `cannot use type inference when defining void pointer` error.
    let x = alloc(size) as #

    for i in 0..size { x[i] = i * 5; }

    for i in 0..size { putnumln(x[i]); }

    free x: size;
}