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

no LOCATE pseudo function #4

Closed
pkali opened this issue Mar 10, 2019 · 6 comments
Closed

no LOCATE pseudo function #4

pkali opened this issue Mar 10, 2019 · 6 comments

Comments

@pkali
Copy link

pkali commented Mar 10, 2019

Cannot locate LOCATE :)

@pkali
Copy link
Author

pkali commented Mar 10, 2019

BTW - of course a better LOCATE would be a real function like
v=LOCATE(x,y)

@dmsc
Copy link
Owner

dmsc commented Mar 10, 2019

Hi!

BTW - of course a better LOCATE would be a real function like
v=LOCATE(x,y)

Yes, I did not implement LOCATE because I never used that function in my programs :)

Currently you can do:
POSITION x, y : GET #6,z

Do you have an use case?

@dmsc
Copy link
Owner

dmsc commented Mar 10, 2019

Hi,

v=LOCATE(x,y)

About implementing it as a function (sing CIO), it will not always work, because you can't interleave the I/O inside PRINT statements. Doing PRINT "Hello "; LOCATE(x,y); " world" would move the cursor and redirect "world" to I/O channel #6.

@pkali
Copy link
Author

pkali commented Mar 10, 2019

Thanks for comment! Workaround with POSITION is good, I should get it when looking at sources of FB.
And of course I've got a use case in a silly tenliner :]

@pkali pkali closed this as completed Mar 10, 2019
@dmsc dmsc reopened this Mar 10, 2019
@dmsc
Copy link
Owner

dmsc commented Mar 10, 2019

I will leave the issue open, as it is missing compared with Atari BASIC and TurboBasic XL.

@dmsc
Copy link
Owner

dmsc commented Feb 13, 2020

This was fixed at commit 6bccb61 , forgot to close.

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

No branches or pull requests

2 participants