function names can start with [0-9_] while symbols not

Bert Wesarg bert.wesarg at googlemail.com
Fri Aug 29 09:31:22 CEST 2008


On Fri, Aug 29, 2008 at 09:06, Bert Wesarg <bert.wesarg at googlemail.com> wrote:
> Hi,
>
> there is a small inconsistency for the syntax of function names. A
> function name can be [A-Za-z0-9_]+. But symbol names can only be
> [A-Za-z$][A-Za-z0-9_]+, So its impossible to call a function defined
> as '_test', or '0hello'.
>
> I post a patch shortly, to support the symbol pattern for function
> definitions too.
BTW: there is a length check of the symbol name for function
definitions, but not in the parse.y, so symbol names are silently
truncated in parser context.

>
> Bert
>


More information about the Develop mailing list