Post Reply 
Free42 LSTO REGS
10-26-2019, 02:52 AM
Post: #21
RE: Free42 LSTO REGS
(10-25-2019 07:17 PM)SammysHP Wrote:  
(10-25-2019 01:50 AM)Epidiah Wrote:  All you need is:
Code:
LSTO "MAT"
DIM "MAT"
The LSTO creates the local variable and the DIM turns it into what you want.

Thanks, didn't thought about storing whatever is on the stack just to declare the variable!
It hadn't occurred to me, either. But I was pondering the LRTN and FLBL discussion above and realized that perhaps all I really want is a way to declare which local variables I wanted to keep from a subroutine. And then I realized I probably already have a way to do that.

So I played around a bit with LSTOing dummy variables in one program and calling subroutines to fill them with the desired data. As long as the subroutine uses STO instead of LSTO for these variables, it works!
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 2 Guest(s)