aboutsummaryrefslogtreecommitdiff
path: root/examples/learn/11-tags.zc
blob: 7e9f6c9e1142a564830c2c64e748656de79b5f01 (plain) (blame)
1
2
3
4
5
6
7
namespace;
include rt;
int*.u box(int v) { int* b = rt.new(int); *b = v; return b; }
fn main() {
	int* p = box(4);
	rt.put_n(*p); rt.put_c(10);
}