aboutsummaryrefslogtreecommitdiff
path: root/examples/learn/05-small-ints.zc
blob: 85555ce1e474bcf66c72025f66099846245d265d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
namespace;
include rt;
fn main() {
	u8 a = 250; a = a + 10;
	rt.put_n(a); rt.put_c(10);
	rt.put_n(sizeof(u8[100])); rt.put_c(10);
	u8* px = rt.new(u8, 4096);
	px[10] = 300;
	rt.put_n(px[10]); rt.put_c(10);
}