12-16-2022, 11:01 AM
I have written something similar for Lua, along the lines of:
Now I have to look at my own code to find out if I also supported an offset to add.
The "table_fill()" created a table (array) having elements with the requested values. The request was made inside a string. It also shuffled the elements of the table but it was a frill I added.
If the "BadLimit" isn't going to be part of QB64PE or a separate BASIC-like interpreter, why set a "default" value if another value is assigned on RHS?
Code: (Select All)
tbl = table_fill("5 to 100 by 5")
tbl2 = table_fill("2;50;2")
Now I have to look at my own code to find out if I also supported an offset to add.
The "table_fill()" created a table (array) having elements with the requested values. The request was made inside a string. It also shuffled the elements of the table but it was a frill I added.
If the "BadLimit" isn't going to be part of QB64PE or a separate BASIC-like interpreter, why set a "default" value if another value is assigned on RHS?