Re: Forbidden variables in BASIC

Alex Evans via Coco <[email protected]> Thu, 14 May 2026 17:50:10 -0400
Newsgroups gmane.comp.hardware.tandy.coco
Message-ID <CAD7WSBS3uBXQpAsjymkZ57Yqu-8qrU5nZjOXpod_FsozmY0zHA@mail.gmail.com>
The trouble is caused by the tokenizer. If you create an already tokenized
file by some other means, you can actually use these variable names.


On Thu, May 14, 2026 at 5:24 PM Allen Huffman via Coco <
[email protected]> wrote:

> BASIC cannot use keywords as variables, so certain two letter combinations
> are not valid in BASIC.
>
> As you add Extended BASIC, it added “FN” so that can’t be used.
>
> As you add Disk BASIC, it added “AS”.
>
> I am updating my blog post. Can you think of any others?
>
>
> 20 ' FORBIDDEN BY CB
>
> 30 GO=42
> 40 IF=42
> 50 ON=42
> 60 OR=42
> 70 TO=42
>
> 80 ' FORBIDDEN BY ECB
>
> 90 FN=42
>
> 100 ' FORBIDDEN BY DECB
>
> 110 AS=42
>
>
> Post:
> https://subethasoftware.com/2025/03/24/color-basic-supports-two-letter-variables-except-when-it-doesnt/#comment-42296
>
> \--
> Allen Huffman - PO Box 7634 - Urbandale IA 50323 - 515-999-0227 (vmail/TXT
> only)
> http://www.subethasoftware.com - https://www.facebook.com/subethasoftware
>
> Use my referral to get low-cost unlimited 5G:
> https://my.mintmobile.com/refer/8Xko_mh
>
> --
> Coco mailing list
> [email protected]
> http://listserv.adelphi.edu/cgi-bin/mailman/listinfo/coco
>

-- 
Coco mailing list
[email protected]
http://listserv.adelphi.edu/cgi-bin/mailman/listinfo/coco