aboutsummaryrefslogtreecommitdiff
path: root/examples/learn/10-owned.zc
blob: 2ee84c0c39cd0d554f6e303f673e0e0c7447152e (plain) (blame)
1
2
3
4
5
6
7
namespace;
include rt;
fn main() {
	int* p = rt.new(int);
	*p = 7;
	rt.put_n(*p); rt.put_c(10);
}