Damn I didn't even know this language could do that, I guess an issue

with namespacing fixed itself
This commit is contained in:
Krzosa Karol
2022-09-30 16:36:55 +02:00
parent 233115cf2c
commit a6f6147df3
11 changed files with 69 additions and 61 deletions

View File

@@ -16,7 +16,7 @@ main :: (): int
static_array: [8]int
// We can get size of array using Length builtin
#Assert(Length(static_array) == 8)
#Assert(Len(static_array) == 8)
// Accessing values is like in C
// Variables are zeroed by default
@@ -40,7 +40,7 @@ main :: (): int
slice: []int = static_array
// We can't do a compile time Assert anymore
Assert(Length(slice) == 8)
Assert(Len(slice) == 8)
Assert(slice[4] == 1)
// After we loop and reassign slice values