Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Parts that positively cannot be assembled in improper order will be.


devel / comp.sys.apple2.programmer / Re: Colons in AppleSoft

SubjectAuthor
* Colons in AppleSoftTom Thumb
`* Re: Colons in AppleSoftJeff Blakeney
 +* Re: Colons in AppleSoftTom Thumb
 |`- Re: Colons in AppleSoftqkumba
 `* Re: Colons in AppleSoftD Finnigan
  `- Re: Colons in AppleSoftMartin Doherty

1
Colons in AppleSoft

<72291a9a-aeb8-430e-b8e3-abd3f865c750n@googlegroups.com>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=249&group=comp.sys.apple2.programmer#249

 copy link   Newsgroups: comp.sys.apple2.programmer
X-Received: by 2002:a37:8606:0:b0:6b8:e6d7:af09 with SMTP id i6-20020a378606000000b006b8e6d7af09mr386125qkd.416.1659474941445;
Tue, 02 Aug 2022 14:15:41 -0700 (PDT)
X-Received: by 2002:a05:6870:4729:b0:10e:ae2c:9cc4 with SMTP id
b41-20020a056870472900b0010eae2c9cc4mr618672oaq.270.1659474941163; Tue, 02
Aug 2022 14:15:41 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.apple2.programmer
Date: Tue, 2 Aug 2022 14:15:40 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=24.185.98.244; posting-account=PB2qngoAAACRVoANRzBDZM-TqC_DJF8g
NNTP-Posting-Host: 24.185.98.244
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <72291a9a-aeb8-430e-b8e3-abd3f865c750n@googlegroups.com>
Subject: Colons in AppleSoft
From: justlike...@gmail.com (Tom Thumb)
Injection-Date: Tue, 02 Aug 2022 21:15:41 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1275
 by: Tom Thumb - Tue, 2 Aug 2022 21:15 UTC

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?

Re: Colons in AppleSoft

<tccabf$1pg12$1@dont-email.me>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=250&group=comp.sys.apple2.programmer#250

 copy link   Newsgroups: comp.sys.apple2.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: CUTjeffr...@yahoo.ca (Jeff Blakeney)
Newsgroups: comp.sys.apple2.programmer
Subject: Re: Colons in AppleSoft
Date: Tue, 2 Aug 2022 19:01:03 -0400
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <tccabf$1pg12$1@dont-email.me>
References: <72291a9a-aeb8-430e-b8e3-abd3f865c750n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 2 Aug 2022 23:01:04 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="020bfc61bf25a2bc2541a8be03743fc5";
logging-data="1884194"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19eCDWnVxWT713YcXZnhxICUSmtUU/R75w="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.11.0
Cancel-Lock: sha1:ZX5ttn/JeCo99wXB4EqJkeVvzck=
Content-Language: en-CA
In-Reply-To: <72291a9a-aeb8-430e-b8e3-abd3f865c750n@googlegroups.com>
 by: Jeff Blakeney - Tue, 2 Aug 2022 23:01 UTC

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.

Re: Colons in AppleSoft

<495587c0-4fda-46b5-ab49-3866af5868c8n@googlegroups.com>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=251&group=comp.sys.apple2.programmer#251

 copy link   Newsgroups: comp.sys.apple2.programmer
X-Received: by 2002:a05:622a:13c9:b0:33a:81b8:e4e8 with SMTP id p9-20020a05622a13c900b0033a81b8e4e8mr3594365qtk.253.1659481997900;
Tue, 02 Aug 2022 16:13:17 -0700 (PDT)
X-Received: by 2002:a05:6830:631a:b0:61c:20d3:fbc with SMTP id
cg26-20020a056830631a00b0061c20d30fbcmr8508332otb.227.1659481997665; Tue, 02
Aug 2022 16:13:17 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.apple2.programmer
Date: Tue, 2 Aug 2022 16:13:17 -0700 (PDT)
In-Reply-To: <tccabf$1pg12$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=24.185.98.244; posting-account=PB2qngoAAACRVoANRzBDZM-TqC_DJF8g
NNTP-Posting-Host: 24.185.98.244
References: <72291a9a-aeb8-430e-b8e3-abd3f865c750n@googlegroups.com> <tccabf$1pg12$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <495587c0-4fda-46b5-ab49-3866af5868c8n@googlegroups.com>
Subject: Re: Colons in AppleSoft
From: justlike...@gmail.com (Tom Thumb)
Injection-Date: Tue, 02 Aug 2022 23:13:17 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1489
 by: Tom Thumb - Tue, 2 Aug 2022 23:13 UTC

> 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.

Hmm, I guess, thank you. I removed them all and the code runs the same, so, no functional purpose other than what you suggest. Again, hmm.
I felt a little silly for asking, but, I'm impulsive.

Re: Colons in AppleSoft

<1d19482f-99c9-47d4-a0b9-4e5359dff00en@googlegroups.com>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=252&group=comp.sys.apple2.programmer#252

 copy link   Newsgroups: comp.sys.apple2.programmer
X-Received: by 2002:a05:620a:1925:b0:6b5:d368:f2e0 with SMTP id bj37-20020a05620a192500b006b5d368f2e0mr19074439qkb.627.1659541684451;
Wed, 03 Aug 2022 08:48:04 -0700 (PDT)
X-Received: by 2002:a05:6870:4729:b0:10e:ae2c:9cc4 with SMTP id
b41-20020a056870472900b0010eae2c9cc4mr2304869oaq.270.1659541684130; Wed, 03
Aug 2022 08:48:04 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.apple2.programmer
Date: Wed, 3 Aug 2022 08:48:03 -0700 (PDT)
In-Reply-To: <495587c0-4fda-46b5-ab49-3866af5868c8n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2603:8001:7300:34b:9ea:612a:dc91:c7bc;
posting-account=bGpciwoAAACg2KT8pQMph7tnt3o_9vtu
NNTP-Posting-Host: 2603:8001:7300:34b:9ea:612a:dc91:c7bc
References: <72291a9a-aeb8-430e-b8e3-abd3f865c750n@googlegroups.com>
<tccabf$1pg12$1@dont-email.me> <495587c0-4fda-46b5-ab49-3866af5868c8n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1d19482f-99c9-47d4-a0b9-4e5359dff00en@googlegroups.com>
Subject: Re: Colons in AppleSoft
From: peter.fe...@gmail.com (qkumba)
Injection-Date: Wed, 03 Aug 2022 15:48:04 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1454
 by: qkumba - Wed, 3 Aug 2022 15:48 UTC

Depending on the source, it might be bad OCR, or there might have been code in the original that was erased with a hex-editor, but leaving the colons in place to prevent syntax errors.

Re: Colons in AppleSoft

<dog_cow-1659558921@macgui.com>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=253&group=comp.sys.apple2.programmer#253

 copy link   Newsgroups: comp.sys.apple2.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: dog_...@macgui.com (D Finnigan)
Newsgroups: comp.sys.apple2.programmer
Subject: Re: Colons in AppleSoft
Date: Wed, 3 Aug 2022 20:35:22 -0000 (UTC)
Organization: Mac GUI
Lines: 17
Message-ID: <dog_cow-1659558921@macgui.com>
References: <72291a9a-aeb8-430e-b8e3-abd3f865c750n@googlegroups.com> <tccabf$1pg12$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 3 Aug 2022 20:35:22 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="25a577b4f32bda6f9df0538728654b3a";
logging-data="2593216"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/BSyQYuXf1KrrfoLP3kCIQ"
User-Agent: Mac GUI Usenet
Cancel-Lock: sha1:9s0pNvIgP5bWyY7z/EzjonxCsUg=
In-Reply-To: <tccabf$1pg12$1@dont-email.me>
 by: D Finnigan - Wed, 3 Aug 2022 20:35 UTC

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.

Re: Colons in AppleSoft

<3ee69bf1-8a92-4ff6-8c04-ac41b18d4733n@googlegroups.com>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=258&group=comp.sys.apple2.programmer#258

 copy link   Newsgroups: comp.sys.apple2.programmer
X-Received: by 2002:ad4:5be1:0:b0:498:79dc:d3ff with SMTP id k1-20020ad45be1000000b0049879dcd3ffmr27044728qvc.87.1664394311487;
Wed, 28 Sep 2022 12:45:11 -0700 (PDT)
X-Received: by 2002:a05:6870:4251:b0:131:b7cc:f993 with SMTP id
v17-20020a056870425100b00131b7ccf993mr1499078oac.208.1664394310337; Wed, 28
Sep 2022 12:45:10 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.apple2.programmer
Date: Wed, 28 Sep 2022 12:45:10 -0700 (PDT)
In-Reply-To: <dog_cow-1659558921@macgui.com>
Injection-Info: google-groups.googlegroups.com; posting-host=100.6.64.19; posting-account=0Ad_nQoAAABObv4pv3SPWqb4kOqVWH3s
NNTP-Posting-Host: 100.6.64.19
References: <72291a9a-aeb8-430e-b8e3-abd3f865c750n@googlegroups.com>
<tccabf$1pg12$1@dont-email.me> <dog_cow-1659558921@macgui.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3ee69bf1-8a92-4ff6-8c04-ac41b18d4733n@googlegroups.com>
Subject: Re: Colons in AppleSoft
From: martindo...@gmail.com (Martin Doherty)
Injection-Date: Wed, 28 Sep 2022 19:45:11 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2761
 by: Martin Doherty - Wed, 28 Sep 2022 19:45 UTC

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

1
server_pubkey.txt

rocksolid light 0.9.7
clearnet tor