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: SUBR for built-ins (per type reference).
  • BricsCAD V26: SUBR for built-ins and, per probe, user lambdas.
  • Status: documented; user-function designator is host-divergent.

Source Notes