diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-03-07 02:18:26 +0200 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-03-07 02:18:26 +0200 |
| commit | ae5fee63f160643a397d18e9e0658275606bc4d4 (patch) | |
| tree | f68af302374f9ae3c9dbb28dab5547036252d559 /examples/v.ct | |
| download | ek-ae5fee63f160643a397d18e9e0658275606bc4d4.tar.gz ek-ae5fee63f160643a397d18e9e0658275606bc4d4.zip | |
initial commit
Diffstat (limited to 'examples/v.ct')
| -rw-r--r-- | examples/v.ct | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/v.ct b/examples/v.ct new file mode 100644 index 0000000..2026d55 --- /dev/null +++ b/examples/v.ct @@ -0,0 +1,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. +} |
