I used to think autolisp was this simple little language but after studying C++ I don't think that is the case anymore. Autolisp, or lisp in general is (in some ways) just as complex as C++. Also the similarities are are amazing, take for example the association list in autolisp and the structure in C++. They can both hold different types of variables and be easily accessed.
(setq offset
(list
(cons "name" "offset")
(cons "Length" 14.14)
(cons x 10.00)
(cons y 20.00)
)
)
(cdr (assoc "Length" offset))
14.14
struct line // structure template
{
char name[20];
float length;
double x;
double y;
};
line offset =
{
"offset",
14.14,
10.00,
20.00
};
cout << offset.length;
14.14