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.