TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: dgpuertas on July 06, 2022, 10:50:35 AM

Title: dot in variable name
Post by: dgpuertas on July 06, 2022, 10:50:35 AM

I think that its a bug (I have spent many hours to find the error in the factors)

It seems that if the variable name contains a dot "."  it does not save it correctly

Did you know this?

Can you try on your computer?


_1_$ (setq f1.1 3030 f1.3 23)
23
_1_$ f1.1
23
_1_$ f1.3
23
_1_$



Title: Re: dot in variable name
Post by: kirby on July 06, 2022, 11:08:04 AM
Excerpt from Acad 2013 'AutoLISP Developer's Guide' (the last pdf version) pp. 10

Symbols and Variables
AutoLISP uses symbols to refer to data. Symbol names are not case sensitive
and may consist of any sequence of alphanumeric and notation characters,
except the following:
Characters restricted from symbol names
( (Open Parenthesis)
) (Close Parenthesis)
. (Period)
' (Apostrophe)
" (Quote Symbol)
; (Semicolon)
A symbol name cannot consist only of numeric characters.