Order independent declaration example
This commit is contained in:
@@ -44,7 +44,10 @@ main :: (): int
|
||||
|
||||
// After we loop and reassign slice values
|
||||
// old static_array gets changed
|
||||
for slice
|
||||
*it = 2
|
||||
|
||||
//
|
||||
// In this example, operator ';;' is used
|
||||
// it inserts a new line, allows to write this
|
||||
// example in a single line
|
||||
for slice;; *it = 2
|
||||
|
||||
assert(static_array[2] == 2)
|
||||
Reference in New Issue
Block a user