mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Prefix type and let to replace immutable
This commit is contained in:
+6
-6
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user