Damn I didn't even know this language could do that, I guess an issue
with namespacing fixed itself
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user