Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chained assignments #33

Open
jomag opened this issue Jan 17, 2021 · 1 comment
Open

Chained assignments #33

jomag opened this issue Jan 17, 2021 · 1 comment

Comments

@jomag
Copy link
Owner

jomag commented Jan 17, 2021

It seems like the interpreter used originally to play STUGA.BAS supported chained assignments.

For example, see line 6302:

06302	C$=FNI$("Ta vadå ?") \ A$=C$=FNC$(C$)

I've so far not looked if this is supported by the references, but GW BASIC does not work that way (fails with "Type Mismatch" error).

@jomag
Copy link
Owner Author

jomag commented Jan 18, 2021

I found this documentation in this reference manual:

bild

Given this, maybe it's a typo after all? It seems like A$ would contain the boolean value of C$=FNC$(C$). And boolean results are numeric, so should not be assignable to a string variable such as A$.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant