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

struct Two {
    let a: num, b: num;
    fn new() -> Two { return [2, 2] }
}

struct Three {
    let a: num, b: num, c: num;
    fn new() -> Three { return [3, 3, 3] }
}


fn main() {
    let three = Two::new() as Three;
}