Page 1 of 1

"Invalid name: same as a command" when declaring list

Posted: Tue Apr 30, 2024 5:11 pm
by ricardo_sdl
This code:

Code: Select all

NewList *Left()
Gives this error message:
Invalid name: same as a command (from library 'String').

I'm declaring a list of pointers, so it shouldn't be an error maybe?

Thanks!

Re: "Invalid name: same as a command" when declaring list

Posted: Tue Apr 30, 2024 6:48 pm
by mk-soft
This has always been the case and prevents spelling mistakes

Re: "Invalid name: same as a command" when declaring list

Posted: Thu May 02, 2024 2:19 pm
by ricardo_sdl
I can see this is the case here:

Code: Select all

NewList Left()
Acessing the current element in Left() is the same as calling Left() without parameters. The error message could be clear if it had the command name that is ambiguous, like this:
Invalid name: Left() same as a command Left (from library 'String').