Prefix type and let to replace immutable

This commit is contained in:
Ginger Bill
2017-06-12 12:56:47 +01:00
parent 33eeb58521
commit 0c05fc1432
22 changed files with 244 additions and 184 deletions
+6 -6
View File
@@ -1,27 +1,27 @@
const Any = struct #ordered {
type Any struct #ordered {
data: rawptr,
type_info: ^TypeInfo,
}
};
const String = struct #ordered {
type String struct #ordered {
data: ^u8,
len: int,
};
const Slice = struct #ordered {
type Slice struct #ordered {
data: rawptr,
len: int,
cap: int,
};
const DynamicArray = struct #ordered {
type DynamicArray struct #ordered {
data: rawptr,
len: int,
cap: int,
allocator: Allocator,
};
const DynamicMap = struct #ordered {
type DynamicMap struct #ordered {
hashes: [dynamic]int,
entries: DynamicArray,
};