Deprecate *list syntax, use &direct refs instead

This commit is contained in:
2025-09-25 08:09:27 +10:00
parent 7066b4300d
commit 81d6e21a00
3 changed files with 59 additions and 74 deletions

View File

@@ -44,12 +44,6 @@ and jump to that (setting labels will be discussed below):
jump %myLabel
```
Reference a list (a list reference) with an asterisk:
```
setlist *myList $value1 $value2 # and so on
```
Add comments with a `#`:
```
@@ -128,31 +122,31 @@ Note: You can also replace &var1 with a list or line reference to check if it al
Allows you to initialize a list.
Usage: `setlist *list $value1 $value2 $value3...`
Usage: `setlist &list $value1 $value2 $value3...`
#### setlistat
Sets a list item at an index. The item at the index must already exist. Lists are index 0.
Usage: `setlistat *list $intvalue $value`
Usage: `setlistat &list $intvalue $value`
#### getlistat
Gets a list item at an index, and puts it in the variable provided. The item at the index must already exist. Lists are index 0.
Usage: `getlistat *list $intvalue &var`
Usage: `getlistat &list $intvalue &var`
#### getlistsize
Gets the size of a list and puts it in the variable provided.
Usage: `getlistsize *list &var`
Usage: `getlistsize &list &var`
#### listappend
Appends an item to a list.
Usage: `listappend *list $var`
Usage: `listappend &list $var`
### String Operations