aboutsummaryrefslogtreecommitdiff
path: root/examples/learn/27-namespaces.zc
blob: 2b2bf684304a6c96de3e30117579d72e3f2bdce8 (plain) (blame)
1
2
3
4
5
6
7
namespace app;
include rt, std;
int twice(int n) { return n * 2; }
fn main() {
	let text = "21";
	rt.put_n(twice(std.Text.atoi(text))); rt.put_c(10);
}