08-19-2022, 06:42 AM
As for SHARED variables be used to pass results, do you *really* want to double up on your words to remember like that??
Right now, if you want the time, you just call the function TIME$. If that function was a SUB, it'd have to look like:
SUB GetTime$
SHARED Time$
Time$ = SystemTime$
END SUB
Then we'd have to code with:
GetTime$ 'call the sub
PRINT Time$ 'use the shared variable
TWO keywords to remember to do one thing.... and add in that complexity to a 100,000 line program like QB64.bas... Would anyone **really** want that??
Right now, if you want the time, you just call the function TIME$. If that function was a SUB, it'd have to look like:
SUB GetTime$
SHARED Time$
Time$ = SystemTime$
END SUB
Then we'd have to code with:
GetTime$ 'call the sub
PRINT Time$ 'use the shared variable
TWO keywords to remember to do one thing.... and add in that complexity to a 100,000 line program like QB64.bas... Would anyone **really** want that??