Type Entry: SUBR
← Prev | ↑ Chapter | Next → | Index | Symbols
Type Entry: SUBR
Name
SUBR
Class
Type (function designator)
Description
A built-in / internal subroutine. On BricsCAD V26 the probe returns SUBR
for built-in functions AND for user lambda values ((type (function foo))
observed as SUBR).
Representation
An opaque callable object.
Valid Operations
- called in functional position; passed to
apply/mapcar;type
Compatibility
Cross-vendor divergence for user-defined functions: BricsCAD V26 returns
SUBR for a user lambda, whereas clautolisp returns USUBR (its printer
shows #<USUBR LAMBDA>). See "Type Entry: USUBR". A program must not rely
on a single designator for user functions across hosts.
Availability
- AutoCAD 2026:
SUBRfor built-ins (pertypereference). - BricsCAD V26:
SUBRfor built-ins and, per probe, user lambdas. - Status: documented; user-function designator is host-divergent.
Source Notes
- [type (AutoLISP)](https://help.autodesk.com/cloudhelp/2026/PLK/AutoCAD-LT-AutoLISP-Reference/files/GUID-506C9CC8-B0BD-4A4C-B4C2-006750504509.htm)
- Status: documented (built-ins); user-lambda designator from probe.