Defines a function as a list
(defun-q sym ([arguments] [/ variables...]) expr...)
The defun-q function is provided strictly for backward-compatibility with previous versions of AutoLISP, and should not be used for other purposes. You can use defun-q in situations where you need to access a function definition as a list structure, which is the way defun was implemented in previous, non-compiled versions of AutoLISP.
If you do not declare any arguments or local symbols, you must supply an empty set of parentheses after the function name.
If duplicate argument or symbol names are specified, AutoLISP uses the first occurrence of each name and ignores the following occurrences.
The result of the last expression evaluated.
_$ (defun-q my-startup (x) (print (list x)))
MY-STARTUP
_$ (my-startup 5)
(5) (5)
Use defun-q-list-ref to display the list structure of my-startup:
_$ (defun-q-list-ref 'my-startup)
((X) (PRINT (LIST X)))
-
The defun-q-list-ref and defun-q-list-set functions.