aboutsummaryrefslogtreecommitdiff
path: root/examples/v.ct
blob: 2026d554de806e0335ed68490708371c38a7da19 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
main(argc u32, argv[argc] *u8) i32
{
	ctx(vec(u32) a);
	// equivalent to
	ctx(struct (vec[u32]) a);

	// All entities defined with struct [vector<u32>] are seen as the same
	// structure, i.e. mangled the same. Something like vector_u32
	// If someone adds a name, i.e. structure lol [vector(u32)] the mangling
	// is lol_vector_u32 and considered a different type. All identical
	// definitions of structs are considered the same struct, in short.
}