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

Calling PROCs with array arguments doesn't work #84

Closed
std-xl opened this issue Apr 22, 2024 · 2 comments
Closed

Calling PROCs with array arguments doesn't work #84

std-xl opened this issue Apr 22, 2024 · 2 comments
Labels

Comments

@std-xl
Copy link

std-xl commented Apr 22, 2024

In FB.COM the following programs dont' work (they crash):

DATA A() BYTE = 1,2,3
EXEC P A(0)
PROC P X:?X:ENDP.

DATA A() BYTE = 1,2,3
EXEC P &A
PROC P X:?X:ENDP.

But this works:

DATA A() BYTE = 1,2,3
XX=A(0)
EXEC P XX
PROC P X:?X:ENDP.

So you can't have any array arguments as PROC parameters ?!

@dmsc
Copy link
Owner

dmsc commented Apr 23, 2024

Hi!

The problem was passing DATA arrays to procedures, passing DIM arrays worked ok.

This was fixed in bd3a653 , two weeks ago :-)

You can try the attached compiled ATR, and report back if there are still problems.

fastbasic.zip

Have Fun!

@dmsc dmsc added the bug label Apr 23, 2024
@dmsc dmsc closed this as completed Apr 23, 2024
@std-xl
Copy link
Author

std-xl commented Apr 23, 2024

Thanks a lot - I'm now using the new ATR image to carry on exploring FastBasic :-)

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

No branches or pull requests

2 participants