Function Entry: ALLOC

← Prev | ↑ Chapter | Next → | Index | Symbols

Function Entry: ALLOC

Name

alloc

Class

Function

Syntax

(alloc n-alloc)

Arguments and Values

  • n-alloc: integer; the new segment-allocation size used by expand. The number controls how many symbols, strings, usubrs, reals, and cons cells are allocated per future expand call.

Description

Sets the segment-allocation size used by the expand function.

Return Values

The previous n-alloc value (an integer).

Side Effects

Updates the AutoLISP allocator's segment-size parameter.

Examples

  • (alloc 100) returns 1000 (the previous segment size, on a fresh session with the documented default).

Availability

  • AutoCAD 2026: documented.
  • BricsCAD V26: presumed compatible (memory-knob behaviour may differ).
  • Status: AutoCAD documented; BricsCAD presumed-both pending Phase 4 verification.