mirror of
https://github.com/KarolS/millfork.git
synced 2026-04-20 18:16:35 +00:00
Implicit ranges in for loops are dumb, remove
This commit is contained in:
+1
-5
@@ -257,7 +257,7 @@ Syntax:
|
||||
```
|
||||
for <variable> , <start> , <direction> , <end> {
|
||||
}
|
||||
for <variable> : <array,enum type or expression> {
|
||||
for <variable> : <enum type> {
|
||||
}
|
||||
for <variable> : [ <comma separated expressions> ] {
|
||||
}
|
||||
@@ -282,12 +282,8 @@ for <variable> : [ <comma separated expressions> ] {
|
||||
|
||||
There is no `paralleldownto`, because it would do the same as `parallelto`.
|
||||
|
||||
* `<array>` – traverse indices of an array, from 0 to length–1
|
||||
|
||||
* `<enum type>` – traverse enum constants of given type, in arbitrary order
|
||||
|
||||
* `<expression>` – traverse from 0 to `expression` – 1
|
||||
|
||||
* `<comma separated expressions>` – traverse every value in the list
|
||||
|
||||
### `break` and `continue` statements
|
||||
|
||||
Reference in New Issue
Block a user