[Coco] What are the rules for naming basic09 variables ?

Wayne Campbell asa.rand at gmail.com
Fri Jul 26 16:21:58 EDT 2019


Up to 29 characters, 0-9, a-z, A-Z, _

$ only if a string variable, only as last character of the variable name.
Not sure, but I think first character has to be a letter?

Wayne

On Fri, Jul 26, 2019, 1:00 PM <coco at jechar.ca> wrote:

>
>   I have seen examples of variable names 10 or 11 characters long and of
> the $ being used in a
>   variable name.
>
>   So I know that alpha numeric and $ are legal components and at least 10
> characters long but I cannot
>   find the explicit rules so for example is underscore a legal variable
> name component, what is the
>   maximum number of characters  in a variable and are they all used or
> for example would
>   VARIABLE1 be the same as VARIABLE2 because first eight characters are
> all the same ?
>
>   Only answer what you know for sure. I could always try writing a bunch
> of test programs to
>   come up with the rules experimentally but perhaps someone knows the
> exact restrictions on basic09
>   variable naming ?
>
>   Charles
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> https://pairlist5.pair.net/mailman/listinfo/coco
>


More information about the Coco mailing list