Maximum length of a function name?

It appears that the maximum length of a function name is 11?

>list

fn aaaaaaaaaaa()

println(“OK 11”)

fend

fn bbbbbbbbbbbb()

println(“ok 12”)

fend

>aaaaaaaaaaa()

OK 11

>bbbbbbbbbbbb()

!unknown identifier:1

>

I thought that a longer name may be truncated to 11 characters but that does not seem to work?

Did I miss mention of function name length in documentation? Or am I up too late?

The engine keeps an look-up table of functions names/locations to help scripts run faster. This table is fixes size.

I see 2 needed improvements:

  1. Update docs to show the max function name.
  2. The engine should raise an error if the script contained a long function name. And also an error of there were too many functions!

Now that I think of this deeper, I think labels are also like functions and they use the same LuT. Update docs accordingly and report here.

We will take care of both this week. Thanks Mike.

Looks like there is a bug in the current firmware because function names length should be 12 characters, not 11.