Page 1 of 1

error setq symbol with beginn with number

Posted: Wed Mar 31, 2021 8:13 am
by HPW
Hello Lutz,

I ran across this error:

Code: Select all

> (setq 01Text "Some Text")

ERR: missing argument in function setf
So is this not allowed to use a symbolname starting with a number?

Using: 10.7.4 32Bit Exe

Also showing in DLL-Flavour.

Regards

Hans-Peter

Re: error setq symbol with beginn with number

Posted: Wed Mar 31, 2021 10:53 am
by cameyo
Variable symbols should not start with any of the following characters:
# ; " ' ( ) { } . , 0 1 2 3 4 5 6 7 8 9

see "Syntax of symbol variables and numbers" on newLISP manual

Re: error setq symbol with beginn with number

Posted: Wed Mar 31, 2021 2:09 pm
by HPW
Hello,

Thanks for the reminder. RTFM.
Long time using newlisp and forgetting something over time. ;-)

Regards

Hans-Peter