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

L. Curtis Boyle curtisboyle at sasktel.net
Fri Jul 26 18:49:20 EDT 2019


Actually, from what I remember, the length of a variable name is only limited to free RAM. If you want to make a 100 character variable, it will work (and if you made a second the same length but the last character changed, they would still be considered unique). Of course, once you PACK it, that is all gone anyways, but in the BASIC09 editor, it just consumes more space in the variable name table.

L. Curtis Boyle
curtisboyle at sasktel.net



> On Jul 26, 2019, at 4:16 PM, coco at jechar.ca wrote:
> 
> 
> Thanks I will try some things based on these rules to confirm and then let everyone know.
> 
> On 2019-07-26 17:49, James Jones wrote:
>> I'd have to look or experiment to confirm the 29-character limit, though I
>> have no reason not to believe it and it would make sense if symbol table
>> entries are 32 bytes. The rest I can confirm is exactly right. Variable
>> (and parameter) names must start with a letter, with the remaining being
>> either letters, digits, or underscores, optionally ending with dollar sign
>> but only if its type is string.
> 
> -- 
> Coco mailing list
> Coco at maltedmedia.com
> https://pairlist5.pair.net/mailman/listinfo/coco
> 



More information about the Coco mailing list