On Wednesday, August 3, 2022 at 4:35:24 PM UTC-4, D Finnigan wrote:
Jeff Blakeney wrote:
On 2022-08-02 5:15 p.m., Tom Thumb wrote:
I was entering lines in AppleSoft from an Open Apple issue. Some lines
begin with colons such as:
350 : GOSUB 1000
440 :: GOSUB 1000
I know a colon separates statements on the same line but what are they
doing it the above statements? Adding empty statements? For what purpose?
It is possible they were just trying to indent the code to make it look more like a structured listing to make it easier to find sections.
I agree. This is a technique that I've seen before in Applesoft listings.
I also agree with Jeff and Dave, it's just a programming workaround to provide a little bit of code indenting in a language that doesn't natively support doing that. There would be a slight performance penalty, but probably very little
A guy named Andres Lozano built a nice pre-processor for Applesoft that lets you code in a virtualized, improved language he calls Virtual Basic which it translates into standard Applesoft for execution. Just thought I'd mention it for those of us who
wish we could indent our Applesoft code :)
https://virtualbasic.org/
rem my main program
print "this is my first test"
gosub @printhello
end
rem my subroutine
#printhello
s$ = "hello world"
print s$
a= 10:b= 5
print a + b
return
--Martin
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)