[Coco] C VS Basic Coco

Wayne Campbell asa.rand at gmail.com
Thu Feb 15 09:37:12 EST 2018

Yes you can write any program in a text editor and as long as the syntax is
correct it will load and run in Basic09. Even a DECB program will run
provided the syntax has been modified to be accurate for Basic09. There are
not many differences so syntax Corrections should be few. You would have to
add the appropriate Dimension statements in order to ensure that your
variables are of the type necessary. Without Dimension statements all
variables default too real type and string. Strings are only defined by use
with a dollar sign character as the last character of the variable name.
All other variables without Dimension statements default to real type.
Also, each program is called a procedure and Basic09, and is required to
begin with the procedure statement:

PROCEDURE myprogramname


On Feb 15, 2018 5:19 AM, "Francis Swygert" <farna at att.net> wrote:

> Date: Wed, 14 Feb 2018 08:28:00 -0800
> From: Wayne Campbell <asa.rand at gmail.com>
> Basic09 brings a lot to the table. First, what numbers are allowed, but not
> necessarily required. The requirement of line numbers applies only to the
> use of GOTO or GOSUB statements. In this regard why numbers are more like
> labels then they are actual numbers. That said you cannot use text and are
> restricted to using numbers, so in that sense they are actual numbers. When
> it comes to writing the code, any text editor will do...
> ==============================================================
> So if I'm reading this right, I could use a text editor and write code
> with line numbers and it will run in BASIC09... assuming syntax is correct?
> A simple DECB program (with appropriate syntax "corrections", if necessary)
> should run?
>  Frank Swygert
>  Fix-It-Frank Handyman Service
>  803-604-6548
> --
> Coco mailing list
> Coco at maltedmedia.com
> https://pairlist5.pair.net/mailman/listinfo/coco

More information about the Coco mailing list