r/Basic • u/CharlieJV13 • Feb 13 '23
Does anybody know of any BASIC implementation that can initialise an array like this ?
BASIC Anywhere Machine started out with an embedded copy of stock wwwBASIC.
Since December 2021, I've made so many changes to the embedded version that we might as well say that it is a fork of wwwBASIC.
Well, surprise surprise. I just discovered something that stock wwwBASIC can do:
DIM a$(5)= {"a","b","c","d", "e"}
Although I've never seen that done in any BASIC implementation until today, I'm betting this ability in wwwBASIC is inspired by the same ability in some other BASIC implementation.
Anybody have any idea?
3
Upvotes
View all comments
Show parent comment
2
u/CharlieJV13 Feb 14 '23
If in Lua before any BASIC, then like Lua.
If in any BASIC before lua, then like BASIC.
If in Pascal or something else before all others, then like that?
It might be pretty intertwingled.