mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 23:28:48 +00:00
distinct keyword for type declarations
This commit is contained in:
+1
-1
@@ -84,7 +84,7 @@ allocation_header :: proc(data: rawptr) -> ^AllocationHeader {
|
||||
}
|
||||
|
||||
|
||||
Fixed_Byte_Buffer :: [dynamic]byte;
|
||||
Fixed_Byte_Buffer :: distinct [dynamic]byte;
|
||||
|
||||
make_fixed_byte_buffer :: proc(backing: []byte) -> Fixed_Byte_Buffer {
|
||||
s := transmute(raw.Slice)backing;
|
||||
|
||||
Reference in New Issue
Block a user