Function Entry: DEFUN-Q-LIST-REF
← Prev | ↑ Chapter | Next → | Index | Symbols
Function Entry: DEFUN-Q-LIST-REF
Name
defun-q-list-ref
Class
Function
Syntax
(defun-q-list-ref 'function)
Arguments and Values
function: a symbol naming a function
Description
Returns the stored list structure of a function defined with defun-q.
This is the reflective accessor that makes the special purpose of defun-q concrete: code can inspect the compatibility-preserved structural definition rather than only call the function.
Return Values
- the function's list definition if the named function was defined as a list
- nil if the argument does not designate a list-defined function
Autodesk's example shows a result of the form:
((X) (PRINT (LIST X)))
which corresponds to:
- the argument/local-variable specification
- the body forms
Side Effects
None specified.
Affected By
- whether the target function was defined with
defun-q
Exceptional Situations
The sampled Autodesk reference does not document additional exceptional situations beyond normal function-call validity requirements.
Examples
(defun-q my-startup (x) (print (list x))) (defun-q-list-ref 'my-startup) => ((X) (PRINT (LIST X)))
Compatibility
- intended only for the backward-compatibility workflow surrounding
defun-q - documented by Autodesk on Windows, Mac OS, and Web
Notes
defun-q-list-ref should not be understood as a general reflection API over arbitrary function definitions. It is specifically tied to the compatibility representation established by defun-q.
Availability
- AutoCAD 2026: documented (per Autodesk reference page).
- BricsCAD V26: presumed compatible (no contradicting page found).
- Status: AutoCAD documented; BricsCAD presumed-both pending Phase 4 verification.
Source Notes
- [defun-q-list-ref (AutoLISP)](https://help.autodesk.com/cloudhelp/2024/ITA/AutoCAD-MAC-AutoLISP-Reference/files/GUID-DAF4A76E-9346-4A68-A0C8-17695177033B.htm)
- [Function-Handling Functions Reference](https://help.autodesk.com/cloudhelp/2026/ENU/AutoCAD-AutoLISP-Reference/files/GUID-6804DF2D-E5C4-466A-9869-3CDD7A031FAA.htm)
- Status: documented.