Or should I say, describes it pretty well?  😊

 

From: M100 <[email protected]> On Behalf Of 
[email protected]
Sent: Monday, April 10, 2023 1:49 PM
To: [email protected]
Subject: Re: [M100] MTLineRef - Resending

 

That describes it pretty good.

 

Lloyd

 

From: M100 <[email protected] 
<mailto:[email protected]> > On Behalf Of John R. Hogerhuis
Sent: Monday, April 10, 2023 1:47 PM
To: [email protected] <mailto:[email protected]> 
Subject: Re: [M100] MTLineRef - Resending

 

 

 

On Mon, Apr 10, 2023 at 11:29 AM Peter Vollan <[email protected] 
<mailto:[email protected]> > wrote:

I still don't understand.

 

 

BASIC control flow is accomplished by GOTO, GOSUB, RETURN (as well as  
FOR-NEXT, IF, THEN, and ON)

 

In particular, in BASIC you have lots of GOTOs and GOSUBs and RETURNs to 
program lines.


So any given BASIC statement within a program line can branch 
(GOTO/GOSUB/RETURN) to any other program line.

 

And a given program line can be the target of a branch (GOTO/GOSUB/RETURN).

For the author or maintainer of a BASIC program this can create a spaghetti 
mess of program flow that is hard to keep track of.

A cross reference utility like Lloyd wrote helps you understand the structure 
of a BASIC program by parsing it and listing out what lines jump to other 
lines, and for given lines, what other lines jump to them.

 

-- John.

Reply via email to