uli / dragonbasic

Dragon BASIC compiler for Game Boy Advance
Other
42 stars 7 forks source link

Strings cannot be instantiated as local variables (Type mis-match?). #6

Closed supercom32 closed 1 year ago

supercom32 commented 6 years ago

Issue found using the latest version of Dragon Basic under Linux (Commit ID: d2ce042366068083a5fe3089873a22221fffbc26)

Strings cannot be instantiated as local variables. Instead the user is given a "Type mis-match?" error. Not allowing local Strings may be design intent, but the documentation doesn't seem to mention anything about this limitation. As far as I know, documentation just mentions that local variables are faster and more efficient, so use it as much as you can.

uli commented 1 year ago

That is correct on both counts: it is both intentional and undocumented (except for a mention in the commit log).

The limitation is now documented. Have a nice day. :)