This version is out of date, covering development from v9.0.0 to v9.3.0. It is maintained here only for inbound reference links from elsewhere. It is no longer actively updated.

Jump to the current version of aTbRef

Tinderbox v9 Icon

Naming functions

Important note: all examples follow aTbRef naming conventions.

Naming Functions

Functions should not use names reserved for built-in operators. Names are case-sensitive. Function names should begin with a letter, and may contain letters, digits, or the underscore character, i.e. A-Z, a-z, 0-9 or _ (but not a hyphen!).

Functions must not share names with attributes or erroneous outcomes will occur.

The convention here in aTbRef is to use the CamelCase naming as for attributes with a lowercase 'f' prefix.

Note that parentheses are always used regardless of whether the function has input arguments—that being a difference from action code operators in general where trailing parentheses may often be omitted if that are no input arguments The naming of arguments is discussed separately, here.

Function arguments are user-named an have no specified limitations but are most sensibly named using letters only (in Latin or other supported scripts).

Next: Defining a function