Main Board > Wish List

gosub SOMEWHERE with a$=b$


Thomas Bock:
I'd like to have a$ implicitly structured like b$ (iol and xfa) when passed to the subroutine.
This would avoid sequences like the following and put more focus on what to do rather than having to deal with the technical background. Perhaps the syntax can be tweaked for this.

local dim workAddr$ : iol(addr1$)
workAddr$ = addr1$
gosub ADDR_2_FILE
workAddr$ = addr2$
gosub ADDR_2_FILE

James Zukowski:
You can pretty much already do that with a CALL into the current program:

CALL pgn+";routine_name",addrx$

Thomas Bock:
You're right for that simple example. But a call is much slower than a gosub. And in legacy code there is often a need to access much environment data as well. So a gosub is still the first choice.


[0] Message Index

Go to full version